Merge pull request #1682 from bluewave-labs/fix/fe/empty-view-message
fix: fe/empty view message, resolves #
This commit is contained in:
3 files changed
+18
-18
No files matched your search
@@ -51,22 +51,22 @@ const InfrastructureDetails = () => {
|
||||
);
|
||||
}
|
||||
|
||||
// if (!isLoading && monitor?.stats?.checks?.length === 0) {
|
||||
// return (
|
||||
// <Stack gap={theme.spacing(10)}>
|
||||
// <Breadcrumbs list={BREADCRUMBS} />
|
||||
// <MonitorStatusHeader
|
||||
// path={"infrastructure"}
|
||||
// isAdmin={false}
|
||||
// shouldRender={!isLoading}
|
||||
// monitor={monitor}
|
||||
// />
|
||||
// <GenericFallback>
|
||||
// <Typography>No data found for this monitor</Typography>
|
||||
// </GenericFallback>
|
||||
// </Stack>
|
||||
// );
|
||||
// }
|
||||
if (!isLoading && monitor?.stats?.checks?.length === 0) {
|
||||
return (
|
||||
<Stack gap={theme.spacing(10)}>
|
||||
<Breadcrumbs list={BREADCRUMBS} />
|
||||
<MonitorStatusHeader
|
||||
path={"infrastructure"}
|
||||
isAdmin={false}
|
||||
shouldRender={!isLoading}
|
||||
monitor={monitor}
|
||||
/>
|
||||
<GenericFallback>
|
||||
<Typography>No check history for htis monitor yet.</Typography>
|
||||
</GenericFallback>
|
||||
</Stack>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<Stack gap={theme.spacing(10)}>
|
||||
|
||||
@@ -70,7 +70,7 @@ const PageSpeedDetails = () => {
|
||||
monitor={monitor}
|
||||
/>
|
||||
<GenericFallback>
|
||||
<Typography>There is no history for this monitor yet.</Typography>
|
||||
<Typography>There is no check history for this monitor yet.</Typography>
|
||||
</GenericFallback>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
@@ -90,7 +90,7 @@ const UptimeDetails = () => {
|
||||
monitor={monitor}
|
||||
/>
|
||||
<GenericFallback>
|
||||
<Typography>There is no history for this monitor yet.</Typography>
|
||||
<Typography>There is no check history for this monitor yet.</Typography>
|
||||
</GenericFallback>
|
||||
</Stack>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user