From 3818c9e5a6f1889aad6339bbbec56860d276b509 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Wed, 19 Feb 2025 13:36:29 -0800 Subject: [PATCH] add an optional Icon to statbox --- src/Components/StatBox/index.jsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Components/StatBox/index.jsx b/src/Components/StatBox/index.jsx index 58fdb7ebf..b1cfe3ad3 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}