From 25a4c399894348de8e856c27b714f86866d22e0f Mon Sep 17 00:00:00 2001 From: Ashutosh Bishnoi Date: Fri, 19 Mar 2021 12:08:52 +0530 Subject: Code formatting --- modern/src/reports/RouteReportPage.js | 87 +++++++++++++++++------------------ 1 file changed, 43 insertions(+), 44 deletions(-) (limited to 'modern') 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([]); -- cgit v1.2.3