diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-11 11:51:26 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-06-11 11:51:26 +0530 |
commit | b897b8027613ca1fc65d87c70a55860cfd339583 (patch) | |
tree | 58377c71c5633bcdb2e9b158384b0c63f181f9e3 /modern/src/reports/SummaryReportPage.js | |
parent | 8e1bddcc608ba4e52699c30084f5ef950bd7e329 (diff) | |
download | trackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.tar.gz trackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.tar.bz2 trackermap-web-b897b8027613ca1fc65d87c70a55860cfd339583.zip |
Fixing issues in report implementations
Diffstat (limited to 'modern/src/reports/SummaryReportPage.js')
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index a2392f2f..e3819a53 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -52,49 +52,49 @@ const SummaryReportPage = () => { headerName: t('reportStartDate'), field: 'startTime', type: 'dateTime', - width: theme.dimensions.dateColumnWidth, + width: theme.dimensions.columnWidthDate, valueFormatter: ({ value }) => formatDate(value, 'YYYY-MM-DD'), }, { headerName: t('sharedDistance'), field: 'distance', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatDistance(value, distanceUnit), }, { headerName: t('reportStartOdometer'), field: 'startOdometer', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatDistance(value, distanceUnit), }, { headerName: t('reportEndOdometer'), field: 'endOdometer', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatDistance(value, distanceUnit), }, { headerName: t('reportAverageSpeed'), field: 'averageSpeed', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatSpeed(value, speedUnit), }, { headerName: t('reportMaximumSpeed'), field: 'maxSpeed', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatSpeed(value, speedUnit), }, { headerName: t('reportEngineHours'), field: 'engineHours', type: 'string', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, valueFormatter: ({ value }) => formatHours(value), }, { headerName: t('reportSpentFuel'), field: 'spentFuel', type: 'number', - width: theme.dimensions.numberColumnWidth, + width: theme.dimensions.columnWidthNumber, hide: true, valueFormatter: ({ value }) => formatVolume(value, volumeUnit), }] |