aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-03-19 12:08:52 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2021-03-19 12:08:52 +0530
commit25a4c399894348de8e856c27b714f86866d22e0f (patch)
tree46d3b4d883bc42cd42568a33e9b5ccf79b86b4c7 /modern/src/reports
parent04bff93e3244708471176f22b8d5c4d9f7da764f (diff)
downloadtrackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.tar.gz
trackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.tar.bz2
trackermap-web-25a4c399894348de8e856c27b714f86866d22e0f.zip
Code formatting
Diffstat (limited to 'modern/src/reports')
-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([]);