From 73148d65bbaffd7878a068c9012ef17b85549adb Mon Sep 17 00:00:00 2001 From: MacRimi Date: Tue, 7 Oct 2025 11:22:51 +0200 Subject: [PATCH] Update hardware.tsx --- AppImage/components/hardware.tsx | 55 +++++++++++++++++--------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/AppImage/components/hardware.tsx b/AppImage/components/hardware.tsx index 149b8e9..b32f376 100644 --- a/AppImage/components/hardware.tsx +++ b/AppImage/components/hardware.tsx @@ -823,6 +823,34 @@ export default function Hardware() { )} + {/* Power Supplies */} + {hardwareData?.power_supplies && hardwareData.power_supplies.length > 0 && ( + +
+ +

Power Supplies

+ + {hardwareData.power_supplies.length} PSUs + +
+ +
+ {hardwareData.power_supplies.map((psu, index) => ( +
+
+ {psu.name} + {psu.status && ( + {psu.status} + )} +
+

{psu.watts} W

+

Current Output

+
+ ))} +
+
+ )} + {/* Fans */} {hardwareData?.fans && hardwareData.fans.length > 0 && ( @@ -859,32 +887,7 @@ export default function Hardware() { )} {/* Power Supplies */} - {hardwareData?.power_supplies && hardwareData.power_supplies.length > 0 && ( - -
- -

Power Supplies

- - {hardwareData.power_supplies.length} PSUs - -
- -
- {hardwareData.power_supplies.map((psu, index) => ( -
-
- {psu.name} - {psu.status && ( - {psu.status} - )} -
-

{psu.watts} W

-

Current Output

-
- ))} -
-
- )} + {/* This section was moved to be grouped with Power Consumption */} {/* UPS */} {hardwareData?.ups && Object.keys(hardwareData.ups).length > 0 && hardwareData.ups.model && (