Merge pull request #1682 from bluewave-labs/fix/fe/empty-view-message

fix: fe/empty view message, resolves #
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-02-01 08:02:04 -08:00
commit 7a162d8f08
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)}>
+1 -1
View File
@@ -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>
);
+1 -1
View File
@@ -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>
);