add heatmap chart
This commit is contained in:
1 parent
c2a1d6d97e
commit
a8d83b33b4
4 files changed
+75
-29
No files matched your search
@@ -2,10 +2,13 @@ import Grid from "@mui/material/Grid";
|
||||
import Typography from "@mui/material/Typography";
|
||||
import { HeatmapResponseTime } from "../common/HeatmapResponseTime";
|
||||
import { StatusLabel } from "@/components/design-elements";
|
||||
import { useTheme } from "@mui/material/styles";
|
||||
|
||||
import type { IMonitor } from "@/types/monitor";
|
||||
|
||||
export const StatusPageRow = ({ monitor }: { monitor: IMonitor }) => {
|
||||
const theme = useTheme();
|
||||
|
||||
return (
|
||||
<Grid container>
|
||||
<Grid size={6} display={"flex"} alignItems={"center"}>
|
||||
@@ -17,10 +20,24 @@ export const StatusPageRow = ({ monitor }: { monitor: IMonitor }) => {
|
||||
alignItems={"center"}
|
||||
justifyContent={"flex-end"}
|
||||
>
|
||||
<StatusLabel status={monitor?.status} />
|
||||
<StatusLabel status={monitor?.status} sx={{ py: 1 }} />
|
||||
</Grid>
|
||||
<Grid size={12}>
|
||||
<HeatmapResponseTime checks={monitor?.latestChecks} />
|
||||
<Grid size={12} marginTop={theme.spacing(2)}>
|
||||
<HeatmapResponseTime
|
||||
checks={monitor?.latestChecks}
|
||||
availabilityCellSx={{
|
||||
borderRadius: {
|
||||
xs: theme.spacing(0.5),
|
||||
md: theme.shape.borderRadius,
|
||||
},
|
||||
}}
|
||||
responseCellSx={{
|
||||
borderRadius: {
|
||||
xs: theme.spacing(0.5),
|
||||
md: theme.shape.borderRadius,
|
||||
},
|
||||
}}
|
||||
/>
|
||||
</Grid>
|
||||
</Grid>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user