aboutsummaryrefslogtreecommitdiff
path: root/modern/src/map
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 09:41:20 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 09:41:20 -0700
commit6ac6ceaed16b2ae5ef58ba599d24a868ac2f816a (patch)
treeedd24c732d6439e6fb3c03f021d9f0842468d474 /modern/src/map
parent105e4ec887e249ec47db83095504012bad22df80 (diff)
downloadtrackermap-web-6ac6ceaed16b2ae5ef58ba599d24a868ac2f816a.tar.gz
trackermap-web-6ac6ceaed16b2ae5ef58ba599d24a868ac2f816a.tar.bz2
trackermap-web-6ac6ceaed16b2ae5ef58ba599d24a868ac2f816a.zip
Finish migrations
Diffstat (limited to 'modern/src/map')
-rw-r--r--modern/src/map/StatusView.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/modern/src/map/StatusView.js b/modern/src/map/StatusView.js
index 85009db7..5526e148 100644
--- a/modern/src/map/StatusView.js
+++ b/modern/src/map/StatusView.js
@@ -77,27 +77,29 @@ const StatusView = ({
<ListItem classes={{ container: classes.listItemContainer }}>
<ListItemText primary={t('positionSpeed')} />
<ListItemSecondaryAction>
- <span>{formatSpeed(position.speed, speedUnit)}</span>
+ {formatSpeed(position.speed, speedUnit, t)}
</ListItemSecondaryAction>
</ListItem>
{position.attributes.batteryLevel && (
<ListItem classes={{ container: classes.listItemContainer }}>
<ListItemText primary={t('positionBattery')} />
<ListItemSecondaryAction>
- <span className={classes[getBatteryStatus(position.attributes.batteryLevel)]}>{formatPosition(position.attributes.batteryLevel, 'batteryLevel')}</span>
+ <span className={classes[getBatteryStatus(position.attributes.batteryLevel)]}>
+ {formatPosition(position.attributes.batteryLevel, 'batteryLevel', t)}
+ </span>
</ListItemSecondaryAction>
</ListItem>
)}
<ListItem classes={{ container: classes.listItemContainer }}>
<ListItemText primary={t('positionDistance')} />
<ListItemSecondaryAction>
- <span>{formatDistance(position.attributes.totalDistance, distanceUnit)}</span>
+ {formatDistance(position.attributes.totalDistance, distanceUnit, t)}
</ListItemSecondaryAction>
</ListItem>
<ListItem classes={{ container: classes.listItemContainer }}>
<ListItemText primary={t('positionCourse')} />
<ListItemSecondaryAction>
- <span>{formatPosition(position.course, 'course')}</span>
+ {formatPosition(position.course, 'course', t)}
</ListItemSecondaryAction>
</ListItem>
</List>