added SodistoreHome Battery View Soh Color code in frontend
This commit is contained in:
parent
71e2644866
commit
3478ba51b3
|
|
@ -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'
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue