Initial commit, add Button Group
This commit is contained in:
1 parent
6dc34be13e
commit
87640f19fa
2 files changed
+305
-267
No files matched your search
Generated
+287
-267
File diff suppressed because it is too large.
Load diff
@@ -7,6 +7,8 @@ import axiosInstance from "../../Utils/axiosConfig";
|
|||||||
import BasicTable from "../../Components/BasicTable";
|
import BasicTable from "../../Components/BasicTable";
|
||||||
import MonitorDetailsAreaChart from "../../Components/Charts/MonitorDetailsAreaChart";
|
import MonitorDetailsAreaChart from "../../Components/Charts/MonitorDetailsAreaChart";
|
||||||
import StatusLabel from "../../Components/StatusLabel";
|
import StatusLabel from "../../Components/StatusLabel";
|
||||||
|
import ButtonGroup from "@mui/material/ButtonGroup";
|
||||||
|
import Button from "../../Components/Button";
|
||||||
|
|
||||||
const formatDuration = (ms) => {
|
const formatDuration = (ms) => {
|
||||||
const seconds = Math.floor(ms / 1000);
|
const seconds = Math.floor(ms / 1000);
|
||||||
@@ -156,6 +158,22 @@ const DetailsPage = () => {
|
|||||||
/>
|
/>
|
||||||
<StatBox title="Incidents" value={countIncidents(monitor.checks)} />
|
<StatBox title="Incidents" value={countIncidents(monitor.checks)} />
|
||||||
</div>
|
</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" }}>
|
<div style={{ height: "10rem" }}>
|
||||||
<MonitorDetailsAreaChart checks={monitor.checks} />
|
<MonitorDetailsAreaChart checks={monitor.checks} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user