aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/RouteReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-14 18:38:35 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-14 18:38:35 -0700
commit46e96c7e87b8f2401ebbabaa132a888e383aab30 (patch)
tree930cb5f0563cb9c7bf9b891e6954ab9c69582b5b /modern/src/reports/RouteReportPage.js
parent2d075de11fcc60691f6091808ee0826a8d4ae61b (diff)
downloadtrackermap-web-46e96c7e87b8f2401ebbabaa132a888e383aab30.tar.gz
trackermap-web-46e96c7e87b8f2401ebbabaa132a888e383aab30.tar.bz2
trackermap-web-46e96c7e87b8f2401ebbabaa132a888e383aab30.zip
Configurable stats report
Diffstat (limited to 'modern/src/reports/RouteReportPage.js')
-rw-r--r--modern/src/reports/RouteReportPage.js44
1 files changed, 23 insertions, 21 deletions
diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js
index edb15af4..80e22bf6 100644
--- a/modern/src/reports/RouteReportPage.js
+++ b/modern/src/reports/RouteReportPage.js
@@ -56,28 +56,30 @@ const RouteReportPage = () => {
</FormControl>
</div>
</ReportFilter>
- <Table>
- <TableHead>
- <TableRow>
- {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))}
- </TableRow>
- </TableHead>
- <TableBody>
- {items.map((item) => (
- <TableRow key={item.id}>
- {columns.map((key) => (
- <TableCell>
- <PositionValue
- position={item}
- property={item.hasOwnProperty(key) ? key : null}
- attribute={item.hasOwnProperty(key) ? null : key}
- />
- </TableCell>
- ))}
+ <TableContainer>
+ <Table>
+ <TableHead>
+ <TableRow>
+ {columns.map((key) => (<TableCell>{t(columnsMap.get(key))}</TableCell>))}
</TableRow>
- ))}
- </TableBody>
- </Table>
+ </TableHead>
+ <TableBody>
+ {items.map((item) => (
+ <TableRow key={item.id}>
+ {columns.map((key) => (
+ <TableCell>
+ <PositionValue
+ position={item}
+ property={item.hasOwnProperty(key) ? key : null}
+ attribute={item.hasOwnProperty(key) ? null : key}
+ />
+ </TableCell>
+ ))}
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </TableContainer>
</PageLayout>
);
};