From 23189d6bc945ab4e26e336a42dce138d0bbb3523 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Mon, 2 May 2022 18:08:33 -0700 Subject: Remove position formatter --- modern/src/reports/ReplayPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern/src/reports') diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js index 9840ea8e..08563b3a 100644 --- a/modern/src/reports/ReplayPage.js +++ b/modern/src/reports/ReplayPage.js @@ -13,7 +13,7 @@ import { useSelector } from 'react-redux'; import Map from '../map/Map'; import ReplayPathMap from '../map/ReplayPathMap'; import PositionsMap from '../map/PositionsMap'; -import { formatPosition } from '../common/formatter'; +import { formatTime } from '../common/formatter'; import ReportFilter from './ReportFilter'; import { useTranslation } from '../LocalizationProvider'; @@ -160,7 +160,7 @@ const ReplayPage = () => { value={index} onChange={(_, index) => setIndex(index)} valueLabelDisplay="auto" - valueLabelFormat={(i) => (i < positions.length ? formatPosition(positions[i], 'fixTime') : '')} + valueLabelFormat={(i) => (i < positions.length ? formatTime(positions[i]) : '')} ValueLabelComponent={TimeLabel} /> @@ -181,7 +181,7 @@ const ReplayPage = () => { - {formatPosition(positions[index], 'fixTime')} + {formatTime(positions[index])} -- cgit v1.2.3