diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-19 12:08:52 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2021-03-19 12:08:52 +0530 |
commit | 25a4c399894348de8e856c27b714f86866d22e0f (patch) | |
tree | 46d3b4d883bc42cd42568a33e9b5ccf79b86b4c7 | |
parent | 04bff93e3244708471176f22b8d5c4d9f7da764f (diff) | |
download | trackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.tar.gz trackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.tar.bz2 trackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.zip |
Code formatting
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 87 |
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([]); |