Fix: UI Fixes on Infra Page

This commit is contained in:
Aryaman Kumar Sharma committed 2025-05-08 17:46:52 +05:30
1 parent 8d2ec585ab
commit 70ec000266
1 file changed
+7 -3
@@ -51,7 +51,9 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
subHeading={ subHeading={
<> <>
{physicalCores} {physicalCores}
<Typography component="span">cores</Typography> <Typography component="span">
{physicalCores === 1 ? "core" : "cores"}
</Typography>
</> </>
} }
/> />
@@ -61,7 +63,9 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
subHeading={ subHeading={
<> <>
{logicalCores} {logicalCores}
<Typography component="span">cores</Typography> <Typography component="span">
{logicalCores === 1 ? "core" : "cores"}
</Typography>
</> </>
} }
/> />
@@ -79,7 +83,7 @@ const InfraStatBoxes = ({ shouldRender, monitor }) => {
subHeading={ subHeading={
<> <>
{cpuTemperature.toFixed(2)} {cpuTemperature.toFixed(2)}
<Typography component="span">C</Typography> <Typography component="span">°C</Typography>
</> </>
} }
/> />