aboutsummaryrefslogtreecommitdiff
path: root/modern
diff options
context:
space:
mode:
Diffstat (limited to 'modern')
-rw-r--r--modern/src/reports/RouteReportPage.js87
1 files changed, 43 insertions, 44 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index 6bfe993c..b6485038 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -30,50 +30,49 @@ const RouteReportPage = () => {
const distanceUnit = useAttributePreference('distanceUnit');
const columns = [{
- headerName: t('positionFixTime'),
- field: 'fixTime',
- type: 'dateTime',
- flex: 1,
- valueFormatter: ({ value }) => formatPosition(value, 'fixTime'),
- }, {
- headerName: t('positionLatitude'),
- field: 'latitude',
- type: 'number',
- flex: 1,
- valueFormatter: ({ value }) => formatPosition(value, 'latitude'),
- }, {
- headerName: t('positionLongitude'),
- field: 'longitude',
- type: 'number',
- flex: 1,
- valueFormatter: ({ value }) => formatPosition(value, 'longitude'),
- }, {
- headerName: t('positionSpeed'),
- field: 'speed',
- type: 'number',
- flex: 1,
- valueFormatter: ({ value }) => formatPosition(value, 'speed'),
- }, {
- headerName: t('positionAddress'),
- field: 'address',
- type: 'string',
- flex: 1,
- valueFormatter: ({ value }) => formatPosition(value, 'address'),
- }, {
- headerName: t('positionIgnition'),
- field: 'ignition',
- type: 'boolean',
- flex: 1,
- valueFormatter: ({ getValue }) => getValue('attributes').ignition ? 'Yes' : 'No',
- }, {
- headerName: t('deviceTotalDistance'),
- field: 'totalDistance',
- type: 'number',
- hide: true,
- flex: 1,
- valueFormatter: ({ getValue }) => formatDistance(getValue('attributes').totalDistance, distanceUnit),
- },
- ]
+ headerName: t('positionFixTime'),
+ field: 'fixTime',
+ type: 'dateTime',
+ flex: 1,
+ valueFormatter: ({ value }) => formatPosition(value, 'fixTime'),
+ }, {
+ headerName: t('positionLatitude'),
+ field: 'latitude',
+ type: 'number',
+ flex: 1,
+ valueFormatter: ({ value }) => formatPosition(value, 'latitude'),
+ }, {
+ headerName: t('positionLongitude'),
+ field: 'longitude',
+ type: 'number',
+ flex: 1,
+ valueFormatter: ({ value }) => formatPosition(value, 'longitude'),
+ }, {
+ headerName: t('positionSpeed'),
+ field: 'speed',
+ type: 'number',
+ flex: 1,
+ valueFormatter: ({ value }) => formatPosition(value, 'speed'),
+ }, {
+ headerName: t('positionAddress'),
+ field: 'address',
+ type: 'string',
+ flex: 1,
+ valueFormatter: ({ value }) => formatPosition(value, 'address'),
+ }, {
+ headerName: t('positionIgnition'),
+ field: 'ignition',
+ type: 'boolean',
+ flex: 1,
+ valueFormatter: ({ getValue }) => getValue('attributes').ignition ? 'Yes' : 'No',
+ }, {
+ headerName: t('deviceTotalDistance'),
+ field: 'totalDistance',
+ type: 'number',
+ hide: true,
+ flex: 1,
+ valueFormatter: ({ getValue }) => formatDistance(getValue('attributes').totalDistance, distanceUnit),
+ }]
const [items, setItems] = useState([]);