aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ReportLayoutPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 15:53:21 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-11-14 15:53:21 -0800
commitbcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8 (patch)
treee46f13f1fa20cde766939974ad9d05edb5cb3588 /modern/src/reports/ReportLayoutPage.js
parenta806e75842f9c5a441232fc88ab09735a1320980 (diff)
downloadtrackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.tar.gz
trackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.tar.bz2
trackermap-web-bcef1fda0756f0ef1afbb53c26f6cbab4dcfeba8.zip
Minor reports cleanup
Diffstat (limited to 'modern/src/reports/ReportLayoutPage.js')
-rw-r--r--modern/src/reports/ReportLayoutPage.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js
index 57a2cefd..296b7c66 100644
--- a/modern/src/reports/ReportLayoutPage.js
+++ b/modern/src/reports/ReportLayoutPage.js
@@ -1,4 +1,4 @@
-import React, { useState } from 'react';
+import React from 'react';
import { Grid, Paper, makeStyles } from '@material-ui/core';
import MainToolbar from '../MainToolbar';
@@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({
},
}));
-const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, ...rest }) => {
+const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, children }) => {
const classes = useStyles();
const onResult = (data) => {
@@ -35,7 +35,7 @@ const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, ...rest
</Paper>
</Grid>
<Grid item xs={12} md={9} lg={10}>
- {rest.children}
+ {children}
</Grid>
</Grid>
</div>