diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 21:29:19 +0200 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-06-16 21:29:19 +0200 |
commit | 3abe32d568ec275d740d7656702a666879a16466 (patch) | |
tree | 8fc85a02fc67ebd47bd63f4e7cfc3a76e7733fe1 /modern/src/common/util | |
parent | 16e5e019089ea03df4562551043e37130db314c6 (diff) | |
download | trackermap-web-3abe32d568ec275d740d7656702a666879a16466.tar.gz trackermap-web-3abe32d568ec275d740d7656702a666879a16466.tar.bz2 trackermap-web-3abe32d568ec275d740d7656702a666879a16466.zip |
fix: Modern - remove driverUniqueId formatter for now
Diffstat (limited to 'modern/src/common/util')
-rw-r--r-- | modern/src/common/util/formatter.js | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modern/src/common/util/formatter.js b/modern/src/common/util/formatter.js index 792a4ef0..0f7d2cc8 100644 --- a/modern/src/common/util/formatter.js +++ b/modern/src/common/util/formatter.js @@ -1,4 +1,3 @@ -import { useSelector } from 'react-redux'; import moment from 'moment'; import { altitudeFromMeters, @@ -69,16 +68,6 @@ export const formatNumericHours = (value, t) => { return `${hours} ${t('sharedHourAbbreviation')} ${minutes} ${t('sharedMinuteAbbreviation')}`; }; -export const formatDriverUniqueId = (value) => { - const drivers = useSelector((state) => state.drivers.items); - let driverId = `${value}`; - const storedDriver = Object.values(drivers).find((d) => d.uniqueId === driverId); - if (storedDriver) { - driverId += ` (${storedDriver.name})`; - } - return driverId; -}; - export const formatCoordinate = (key, value, unit) => { let hemisphere; let degrees; |