diff options
author | Iván Ávalos <avalos@disroot.org> | 2021-12-20 21:14:53 -0600 |
---|---|---|
committer | Iván Ávalos <avalos@disroot.org> | 2021-12-20 21:14:53 -0600 |
commit | cb9728775b0e5eca8c705c0e2c61f9171b7068d9 (patch) | |
tree | 045635a126c10b019df933992bc32c161f6635ff /modern/src/reports/StopReportPage.js | |
parent | 7bf059a2bb5423fe85bcd59938acd4a40671f14b (diff) | |
download | etbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.tar.gz etbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.tar.bz2 etbsa-traccar-web-cb9728775b0e5eca8c705c0e2c61f9171b7068d9.zip |
Upgraded http-proxy-middleware to 2.0.1 and fixed reports
Diffstat (limited to 'modern/src/reports/StopReportPage.js')
-rw-r--r-- | modern/src/reports/StopReportPage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index aa668d5..f84b7e6 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -2,7 +2,7 @@ import React, { useState } from 'react'; import { DataGrid } from '@material-ui/data-grid'; import { useTheme } from '@material-ui/core/styles'; import { - formatDistance, formatHours, formatDate, formatVolume, + formatDistance, formatHours, formatDate, formatVolume, formatPosition, } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; @@ -68,13 +68,13 @@ const StopReportPage = () => { field: 'duration', type: 'string', width: theme.dimensions.columnWidthString, - valueFormatter: ({ value }) => formatHours(value), + valueFormatter: ({ value }) => formatHours(value, t), }, { headerName: t('reportEngineHours'), field: 'engineHours', type: 'string', width: theme.dimensions.columnWidthString, - valueFormatter: ({ value }) => formatHours(value), + valueFormatter: ({ value }) => formatHours(value, t), }, { headerName: t('reportSpentFuel'), field: 'spentFuel', |