From 3478ba51b39ba88bda5decebaa38ee6304d0cf86 Mon Sep 17 00:00:00 2001 From: Yinyin Liu Date: Mon, 17 Nov 2025 13:19:32 +0100 Subject: [PATCH] added SodistoreHome Battery View Soh Color code in frontend --- .../dashboards/BatteryView/BatteryViewSodioHome.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx b/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx index a3cf32746..db6b47d6c 100644 --- a/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx @@ -309,7 +309,12 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) { sx={{ width: '8%', textAlign: 'center', - backgroundColor: '#32CD32', + backgroundColor: + battery.Soh ==100 + ? '#32CD32' + : battery.Soc >= 90 + ? '#ffbf00' + : '#FF033E', color: 'inherit' }} >