use heathmap
This commit is contained in:
1 parent
68ab185f84
commit
c2a1d6d97e
8 files changed
+154
-106
No files matched your search
@@ -1,30 +1,27 @@
|
||||
import Grid from "@mui/material/Grid";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { HistogramStatusPage } from "./HistogramStatusPage";
|
||||
import { HeatmapResponseTime } from "../common/HeatmapResponseTime";
|
||||
import { StatusLabel } from "@/components/design-elements";
|
||||
|
||||
import type { IMonitor } from "@/types/monitor";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
|
||||
export const StatusPageRow = ({ monitor }: { monitor: IMonitor }) => {
|
||||
const theme = useTheme();
|
||||
return (
|
||||
<Grid container>
|
||||
<Grid size={12}>
|
||||
<Grid size={6} display={"flex"} alignItems={"center"}>
|
||||
<Typography>{monitor?.name}</Typography>
|
||||
</Grid>
|
||||
<Grid size={{ xs: 8, sm: 10 }}>
|
||||
<HistogramStatusPage checks={monitor?.latestChecks} />
|
||||
</Grid>
|
||||
<Grid
|
||||
size={{ xs: 4, sm: 2 }}
|
||||
paddingLeft={theme.spacing(10)}
|
||||
size={6}
|
||||
display={"flex"}
|
||||
alignItems={"center"}
|
||||
justifyContent={"flex-start"}
|
||||
justifyContent={"flex-end"}
|
||||
>
|
||||
<StatusLabel status={monitor?.status} />
|
||||
</Grid>
|
||||
<Grid size={12}>
|
||||
<HeatmapResponseTime checks={monitor?.latestChecks} />
|
||||
</Grid>
|
||||
</Grid>
|
||||
);
|
||||
};
|
||||
Reference in new issue
Block a user