From cb9728775b0e5eca8c705c0e2c61f9171b7068d9 Mon Sep 17 00:00:00 2001 From: Iván Ávalos Date: Mon, 20 Dec 2021 21:14:53 -0600 Subject: Upgraded http-proxy-middleware to 2.0.1 and fixed reports --- modern/src/reports/StopReportPage.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modern/src/reports/StopReportPage.js') 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', -- cgit v1.2.3