aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 21:54:39 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-09-27 21:54:39 -0700
commit236b10503612706ed914678d942ac604f2973f47 (patch)
treee557381dbdc721002346a0fc64b1a679280fa3f1 /modern/src/reports
parent96af05dbf2171c4e194cf67c3c93d134ef467e50 (diff)
downloadetbsa-traccar-web-236b10503612706ed914678d942ac604f2973f47.tar.gz
etbsa-traccar-web-236b10503612706ed914678d942ac604f2973f47.tar.bz2
etbsa-traccar-web-236b10503612706ed914678d942ac604f2973f47.zip
Implement notification settings
Diffstat (limited to 'modern/src/reports')
-rw-r--r--modern/src/reports/RouteReportPage.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index 37e74f4..5e57783 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -4,7 +4,7 @@ import { Grid, TableContainer, Table, TableRow, TableCell, TableHead, TableBody,
import t from '../common/localization';
import { useSelector } from 'react-redux';
import moment from 'moment';
-import formatter from '../common/formatter';
+import { formatPosition } from '../common/formatter';
const useStyles = makeStyles(theme => ({
root: {
@@ -146,11 +146,11 @@ const RouteReportPage = () => {
<TableBody>
{data.map((item) => (
<TableRow key={item.id}>
- <TableCell>{formatter(item, 'fixTime')}</TableCell>
- <TableCell>{formatter(item, 'latitude')}</TableCell>
- <TableCell>{formatter(item, 'longitude')}</TableCell>
- <TableCell>{formatter(item, 'speed')}</TableCell>
- <TableCell>{formatter(item, 'address')}</TableCell>
+ <TableCell>{formatPosition(item, 'fixTime')}</TableCell>
+ <TableCell>{formatPosition(item, 'latitude')}</TableCell>
+ <TableCell>{formatPosition(item, 'longitude')}</TableCell>
+ <TableCell>{formatPosition(item, 'speed')}</TableCell>
+ <TableCell>{formatPosition(item, 'address')}</TableCell>
</TableRow>
))}
</TableBody>