Initial commit, add Button Group

This commit is contained in:
Alex Holliday committed 2024-07-17 14:00:49 -07:00
1 parent 6dc34be13e
commit 87640f19fa
2 files changed
+305 -267

No files matched your search

+287 -267
View File
File diff suppressed because it is too large. Load diff
+18
View File
@@ -7,6 +7,8 @@ import axiosInstance from "../../Utils/axiosConfig";
import BasicTable from "../../Components/BasicTable";
import MonitorDetailsAreaChart from "../../Components/Charts/MonitorDetailsAreaChart";
import StatusLabel from "../../Components/StatusLabel";
import ButtonGroup from "@mui/material/ButtonGroup";
import Button from "../../Components/Button";
const formatDuration = (ms) => {
const seconds = Math.floor(ms / 1000);
@@ -156,6 +158,22 @@ const DetailsPage = () => {
/>
<StatBox title="Incidents" value={countIncidents(monitor.checks)} />
</div>
<div
style={{
display: "flex",
alignItems: "center",
justifyContent: "space-between",
}}
>
<Typography component="h1" mb={theme.gap.small}>
Response Times
</Typography>
<ButtonGroup>
<Button level="secondary" label="Day" />
<Button level="secondary" label="Week" />
<Button level="secondary" label="Month" />
</ButtonGroup>
</div>
<div style={{ height: "10rem" }}>
<MonitorDetailsAreaChart checks={monitor.checks} />
</div>