diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-25 10:37:56 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-25 10:37:56 +0530 |
commit | cfa8947f3a4adda1ed649210da4adfe21f44af21 (patch) | |
tree | 2ee35f32b54cfa506f7b73795f6fdca0fa4199c9 /modern/src/reports/RouteReportPage.js | |
parent | 85fa5aed51ee16a7f5258ab29a991c9e4007fc04 (diff) | |
download | trackermap-web-cfa8947f3a4adda1ed649210da4adfe21f44af21.tar.gz trackermap-web-cfa8947f3a4adda1ed649210da4adfe21f44af21.tar.bz2 trackermap-web-cfa8947f3a4adda1ed649210da4adfe21f44af21.zip |
renaming coordinateFormatter function
Diffstat (limited to 'modern/src/reports/RouteReportPage.js')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index bbe37e2f..b8bad00d 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -1,7 +1,7 @@ import React, { useState } from 'react'; import { DataGrid } from '@material-ui/data-grid'; import t from '../common/localization'; -import { formatDistance, formatSpeed, formatBoolean, formatDate, formatNumber, coordinateFormatter } from '../common/formatter'; +import { formatDistance, formatSpeed, formatBoolean, formatDate, formatCoordinate } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayoutPage from './ReportLayoutPage'; import { useAttributePreference, usePreference } from '../common/preferences'; @@ -42,13 +42,13 @@ const RouteReportPage = () => { field: 'latitude', type: 'number', flex: 1, - valueFormatter: ({ value }) => coordinateFormatter('latitude', value, coordinateFormat), + valueFormatter: ({ value }) => formatCoordinate('latitude', value, coordinateFormat), }, { headerName: t('positionLongitude'), field: 'longitude', type: 'number', flex: 1, - valueFormatter: ({ value }) => coordinateFormatter('longitude', value, coordinateFormat), + valueFormatter: ({ value }) => formatCoordinate('longitude', value, coordinateFormat), }, { headerName: t('positionSpeed'), field: 'speed', |