diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-02 18:09:21 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-02 18:09:21 -0700 |
commit | 164619b05a354df112909e0db251722dde5a3624 (patch) | |
tree | 8e2bed4ffb33ecdedc0905ea42d3239267845035 /modern | |
parent | 23189d6bc945ab4e26e336a42dce138d0bbb3523 (diff) | |
download | trackermap-web-164619b05a354df112909e0db251722dde5a3624.tar.gz trackermap-web-164619b05a354df112909e0db251722dde5a3624.tar.bz2 trackermap-web-164619b05a354df112909e0db251722dde5a3624.zip |
Fix style issues
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/components/PositionValue.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/modern/src/components/PositionValue.js b/modern/src/components/PositionValue.js index b9e573fe..442ac859 100644 --- a/modern/src/components/PositionValue.js +++ b/modern/src/components/PositionValue.js @@ -1,5 +1,7 @@ import React from 'react'; -import { formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime } from '../common/formatter'; +import { + formatAlarm, formatBoolean, formatCoordinate, formatCourse, formatDistance, formatNumber, formatPercentage, formatSpeed, formatTime, +} from '../common/formatter'; import { useAttributePreference, usePreference } from '../common/preferences'; import { useTranslation } from '../LocalizationProvider'; @@ -34,7 +36,7 @@ const PositionValue = ({ position, property, attribute }) => { case 'odometer': case 'distance': case 'totalDistance': - return formatDistance(value, distanceUnit, t) + return formatDistance(value, distanceUnit, t); default: if (typeof value === 'number') { return formatNumber(value); @@ -43,7 +45,7 @@ const PositionValue = ({ position, property, attribute }) => { } return value; } - } + }; return (<>{formatValue(value)}</>); }; |