mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +03:00
refactor how values are rendered to screen and to json. added space before suffix
This commit is contained in:
@@ -165,7 +165,7 @@ class EMSESPDevicesForm extends Component<EMSESPDevicesFormProps, EMSESPDevicesF
|
||||
{sensorData.id}
|
||||
</TableCell>
|
||||
<TableCell align="right">
|
||||
{sensorData.temp.toFixed(1)}°C
|
||||
{sensorData.temp.toFixed(1)} °C
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
@@ -284,12 +284,12 @@ class EMSESPDevicesForm extends Component<EMSESPDevicesFormProps, EMSESPDevicesF
|
||||
</TableHead>
|
||||
<TableBody>
|
||||
{deviceData.deviceData.map(deviceData => (
|
||||
<TableRow key={deviceData.name}>
|
||||
<TableRow key={deviceData.n}>
|
||||
<TableCell component="th" scope="row">
|
||||
{deviceData.name}
|
||||
{deviceData.n}
|
||||
</TableCell>
|
||||
<TableCell align="right">
|
||||
{deviceData.value}
|
||||
{deviceData.v}
|
||||
</TableCell>
|
||||
</TableRow>
|
||||
))}
|
||||
|
||||
Reference in New Issue
Block a user