From ca9ca4f59acf095522f241f64c5b04b0766560f9 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Tue, 19 Nov 2024 12:02:37 +0800 Subject: [PATCH] Add gauges --- .../Pages/Infrastructure/details/index.jsx | 71 ++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/Client/src/Pages/Infrastructure/details/index.jsx b/Client/src/Pages/Infrastructure/details/index.jsx index ec5c2d066..9ff3c57f1 100644 --- a/Client/src/Pages/Infrastructure/details/index.jsx +++ b/Client/src/Pages/Infrastructure/details/index.jsx @@ -3,6 +3,7 @@ import { useParams } from "react-router-dom"; import Breadcrumbs from "../../../Components/Breadcrumbs"; import { Stack, Box, Typography } from "@mui/material"; import { useTheme } from "@emotion/react"; +import CustomGauge from "../../../Components/Charts/CustomGauge"; const bytesToGB = (bytes) => { if (typeof bytes !== "number") return 0; @@ -43,7 +44,41 @@ const GaugeBox = ({ value, heading, metricOne, valueOne, metricTwo, valueTwo }) const theme = useTheme(); return ( -
+ + + {heading} + + + {metricOne} + {valueOne} + + + {metricTwo} + {valueTwo} + + +
); }; @@ -91,6 +126,40 @@ const InfrastructureDetails = () => { subHeading={"Active"} /> + + + + {latestCheck.disk.map((disk, idx) => { + return ( + + ); + })} + );