diff options
author | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-02-24 16:02:48 -0800 |
commit | 8bd7cba6f5ce56bcccda1459cdd953b3add799d6 (patch) | |
tree | d133b5e57cee061fd49eeddcec35dc3b38254a6d /modern/src/main/DeviceRow.jsx | |
parent | 3106f6ab617b23d6fb2587c3cde2b684abac2605 (diff) | |
download | trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.gz trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.tar.bz2 trackermap-web-8bd7cba6f5ce56bcccda1459cdd953b3add799d6.zip |
Fix lint and issues
Diffstat (limited to 'modern/src/main/DeviceRow.jsx')
-rw-r--r-- | modern/src/main/DeviceRow.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/main/DeviceRow.jsx b/modern/src/main/DeviceRow.jsx index 8d40e139..d9c1a189 100644 --- a/modern/src/main/DeviceRow.jsx +++ b/modern/src/main/DeviceRow.jsx @@ -119,15 +119,15 @@ const DeviceRow = ({ data, index, style }) => { {position.attributes.hasOwnProperty('batteryLevel') && ( <Tooltip title={`${t('positionBatteryLevel')}: ${formatPercentage(position.attributes.batteryLevel)}`}> <IconButton size="small"> - {position.attributes.batteryLevel > 70 ? ( + {(position.attributes.batteryLevel > 70 && ( position.attributes.charge ? (<BatteryChargingFullIcon fontSize="small" className={classes.success} />) : (<BatteryFullIcon fontSize="small" className={classes.success} />) - ) : position.attributes.batteryLevel > 30 ? ( + )) || (position.attributes.batteryLevel > 30 && ( position.attributes.charge ? (<BatteryCharging60Icon fontSize="small" className={classes.warning} />) : (<Battery60Icon fontSize="small" className={classes.warning} />) - ) : ( + )) || ( position.attributes.charge ? (<BatteryCharging20Icon fontSize="small" className={classes.error} />) : (<Battery20Icon fontSize="small" className={classes.error} />) |