diff --git a/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx b/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx index bb0fafb93..a3cf32746 100644 --- a/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx +++ b/typescript/frontend-marios2/src/content/dashboards/BatteryView/BatteryViewSodioHome.tsx @@ -271,12 +271,14 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) { sx={{ width: '13%', textAlign: 'center', - - backgroundColor: '#32CD32', - color: 'black' + backgroundColor: + battery.Voltage < 32 || battery.Voltage > 63 + ? '#FF033E' + : '#32CD32', + color: 'inherit' }} > - {battery.Voltage + ' ' + 'V'} + {battery.Voltage + ' V'} 20 + ? '#32CD32' + : battery.Soc >= 10 + ? '#ffbf00' + : '#FF033E', color: 'inherit' }} >