diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-10-31 16:32:54 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-10-31 16:32:54 +0530 |
commit | 71892bfca5c4c7fe6d691aaf84baaae54c335939 (patch) | |
tree | 99d3a94d7824aeaa82c0f80f20d3bb15c47b8186 /modern/src/reports/EventReportPage.js | |
parent | f75cf89d3b4bdb160b4cc7f0a938fe074aed7192 (diff) | |
download | trackermap-web-71892bfca5c4c7fe6d691aaf84baaae54c335939.tar.gz trackermap-web-71892bfca5c4c7fe6d691aaf84baaae54c335939.tar.bz2 trackermap-web-71892bfca5c4c7fe6d691aaf84baaae54c335939.zip |
Changed code style from double quotes to single quotes
Diffstat (limited to 'modern/src/reports/EventReportPage.js')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index acd6f637..0a451c13 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -1,5 +1,5 @@ -import React, { useState } from "react"; -import MainToolbar from "../MainToolbar"; +import React, { useState } from 'react'; +import MainToolbar from '../MainToolbar'; import { Grid, TableContainer, @@ -10,20 +10,20 @@ import { TableBody, Paper, makeStyles, -} from "@material-ui/core"; -import t from "../common/localization"; -import { formatPosition } from "../common/formatter"; -import ReportFilter from "./ReportFilter"; +} from '@material-ui/core'; +import t from '../common/localization'; +import { formatPosition } from '../common/formatter'; +import ReportFilter from './ReportFilter'; const useStyles = makeStyles((theme) => ({ root: { - height: "100%", - display: "flex", - flexDirection: "column", + height: '100%', + display: 'flex', + flexDirection: 'column', }, content: { flex: 1, - overflow: "auto", + overflow: 'auto', padding: theme.spacing(2), }, form: { @@ -42,7 +42,7 @@ const EventReportPage = () => { to: to.toISOString(), }); fetch(`/api/reports/events?${query.toString()}`, { - headers: { Accept: "application/json" }, + headers: { Accept: 'application/json' }, }).then((response) => { if (response.ok) { response.json().then(setData); @@ -65,17 +65,17 @@ const EventReportPage = () => { <Table> <TableHead> <TableRow> - <TableCell>{t("positionFixTime")}</TableCell> - <TableCell>{t("sharedType")}</TableCell> - <TableCell>{t("sharedGeofence")}</TableCell> - <TableCell>{t("sharedMaintenance")}</TableCell> + <TableCell>{t('positionFixTime')}</TableCell> + <TableCell>{t('sharedType')}</TableCell> + <TableCell>{t('sharedGeofence')}</TableCell> + <TableCell>{t('sharedMaintenance')}</TableCell> </TableRow> </TableHead> <TableBody> {data.map((item) => ( <TableRow key={item.id}> <TableCell> - {formatPosition(item, "serverTime")} + {formatPosition(item, 'serverTime')} </TableCell> <TableCell>{item.type}</TableCell> <TableCell>{}</TableCell> |