diff options
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index 37e74f46..5e577838 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> |