From 9460db25436d49ac97bfa02d78c123c81a661c57 Mon Sep 17 00:00:00 2001 From: Markus Tacker Date: Thu, 12 Oct 2023 14:27:08 +0200 Subject: [PATCH] fix(fuel-gauge): improve rendering --- src/FuelGauge.tsx | 60 +++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/src/FuelGauge.tsx b/src/FuelGauge.tsx index 3512901c..0149db99 100644 --- a/src/FuelGauge.tsx +++ b/src/FuelGauge.tsx @@ -50,41 +50,41 @@ export const FuelGauge = ({ }) => { const { V, I: current, T: temp, SoC, TTF, TTE } = fg.v const isCharging = current < 0 + const ChargingIndicator = isCharging ? Charging : NotCharging return ( <>
- + + +
- - + + + + + +
)