This commit is contained in:
Alex Holliday committed 2026-01-28 17:59:11 +00:00
1 parent 07705e9823
commit fcfad945a0
7 files changed
+110 -46

No files matched your search

@@ -2,6 +2,8 @@ import Stack from "@mui/material/Stack";
import Typography from "@mui/material/Typography";
import { ToggleButtonGroup, ToggleButton } from "@/Components/v2/inputs";
import { useTheme } from "@mui/material/styles";
import CircularProgress from "@mui/material/CircularProgress";
import Box from "@mui/material/Box";
interface MonitorTimeFrameHeaderProps {
isLoading?: boolean;
@@ -72,6 +74,9 @@ export const HeaderTimeRange = ({
alignItems="center"
gap={theme.spacing(4)}
>
<Box sx={{ width: 20, height: 20, display: "flex", alignItems: "center", justifyContent: "center" }}>
{isLoading && <CircularProgress size={16} />}
</Box>
<Typography variant="body2">
Showing statistics for past{" "}
{dateRange === "recent"
@@ -133,6 +133,20 @@ export const DownChecksBox = ({ n }: { n: number }) => {
/>
);
};
export const UpChecksBox = ({ n }: { n: number }) => {
const theme = useTheme();
const { t } = useTranslation();
return (
<StatusBox
label={t("pages.common.monitors.status.up")}
n={n}
color={theme.palette.success.light}
sx={{
maxWidth: "300px",
}}
/>
);
};
export const InitializingStatusBox = ({ n }: { n: number }) => {
const theme = useTheme();