From e9ae301af7af6be45713f3a560eed8ccc2bed439 Mon Sep 17 00:00:00 2001 From: Aryaman Kumar Sharma Date: Tue, 4 Mar 2025 00:58:59 +0530 Subject: [PATCH] Fix: Infrastructure Details Page Design --- .../Details/Components/GaugeBoxes/Gauge.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Pages/Infrastructure/Details/Components/GaugeBoxes/Gauge.jsx b/src/Pages/Infrastructure/Details/Components/GaugeBoxes/Gauge.jsx index ee2ab5963..916d3e8e9 100644 --- a/src/Pages/Infrastructure/Details/Components/GaugeBoxes/Gauge.jsx +++ b/src/Pages/Infrastructure/Details/Components/GaugeBoxes/Gauge.jsx @@ -9,13 +9,13 @@ import PropTypes from "prop-types"; const Gauge = ({ value, heading, metricOne, valueOne, metricTwo, valueTwo }) => { const theme = useTheme(); - const boxStyle = { + const valueStyle = { borderRadius: 2, backgroundColor: theme.palette.tertiary.main, width: "40%", - mb: 2, - mt: 2, - pr: 2, + mb: theme.spacing(2), + mt: theme.spacing(2), + pr: theme.spacing(2), textAlign: 'right' } @@ -54,7 +54,7 @@ const Gauge = ({ value, heading, metricOne, valueOne, metricTwo, valueTwo }) => gap={theme.spacing(2)} > {metricOne} - {valueOne} + {valueOne} gap={theme.spacing(2)} > {metricTwo} - {valueTwo} + {valueTwo}