diff --git a/src/Components/StatBox/index.jsx b/src/Components/StatBox/index.jsx index 58fdb7ebf..d571767fa 100644 --- a/src/Components/StatBox/index.jsx +++ b/src/Components/StatBox/index.jsx @@ -32,6 +32,7 @@ import useUtils from "../../Pages/Uptime/Monitors/Hooks/useUtils"; const StatBox = ({ img, + icon: Icon, alt, heading, subHeading, @@ -114,6 +115,9 @@ const StatBox = ({ sx={{ marginRight: theme.spacing(8) }} /> )} + {Icon && ( + + )} {heading} {subHeading} @@ -128,6 +132,9 @@ StatBox.propTypes = { gradient: PropTypes.bool, status: PropTypes.string, sx: PropTypes.object, + icon: PropTypes.node, + img: PropTypes.node, + alt: PropTypes.string, }; export default StatBox; diff --git a/src/Pages/DistributedUptimeStatus/Status/index.jsx b/src/Pages/DistributedUptimeStatus/Status/index.jsx index ef77b3032..b350792f7 100644 --- a/src/Pages/DistributedUptimeStatus/Status/index.jsx +++ b/src/Pages/DistributedUptimeStatus/Status/index.jsx @@ -12,6 +12,10 @@ import MonitorTimeFrameHeader from "../../../Components/MonitorTimeFrameHeader"; import GenericFallback from "../../../Components/GenericFallback"; import Dialog from "../../../Components/Dialog"; import SkeletonLayout from "./Components/Skeleton"; +import StatBox from "../../../Components/StatBox"; +import UptLogo from "../../../assets/icons/upt_logo.png"; +import PeopleAltOutlinedIcon from "@mui/icons-material/PeopleAltOutlined"; + //Utils import { useTheme } from "@mui/material/styles"; import { useState } from "react"; @@ -45,6 +49,7 @@ const DistributedUptimeStatus = () => { const [isLoading, networkError, connectionStatus, monitor, lastUpdateTrigger] = useSubscribeToDetails({ monitorId, dateRange, isPublic, isPublished }); + console.log(monitor); const [deleteStatusPage, isDeleting] = useStatusPageDelete(() => { navigate("/distributed-uptime"); }, url); @@ -144,10 +149,7 @@ const DistributedUptimeStatus = () => { url={url} type="distributed" /> - + { dateRange={dateRange} setDateRange={setDateRange} /> - { - + + + + + + + + + +