added SodistoreHome Battery View Soh Color code in frontend

This commit is contained in:
Yinyin Liu 2025-11-17 13:19:32 +01:00
parent 71e2644866
commit 3478ba51b3
1 changed files with 6 additions and 1 deletions

View File

@ -309,7 +309,12 @@ function BatteryViewSodioHome(props: BatteryViewSodioHomeProps) {
sx={{ sx={{
width: '8%', width: '8%',
textAlign: 'center', textAlign: 'center',
backgroundColor: '#32CD32', backgroundColor:
battery.Soh ==100
? '#32CD32'
: battery.Soc >= 90
? '#ffbf00'
: '#FF033E',
color: 'inherit' color: 'inherit'
}} }}
> >