aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ReportLayoutPage.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2020-12-13 19:31:39 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2020-12-13 19:31:39 +0530
commitf8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc (patch)
treefdf695dee1e1482b871675cbaa1c240c80e2c24f /modern/src/reports/ReportLayoutPage.js
parent63cd33bd73ff5cdd6a619e271281f846d66f8a0a (diff)
downloadtrackermap-web-f8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc.tar.gz
trackermap-web-f8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc.tar.bz2
trackermap-web-f8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc.zip
Refactored all the reports components to make them more generic
Diffstat (limited to 'modern/src/reports/ReportLayoutPage.js')
-rw-r--r--modern/src/reports/ReportLayoutPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js
index 93cf6dab..d6fac051 100644
--- a/modern/src/reports/ReportLayoutPage.js
+++ b/modern/src/reports/ReportLayoutPage.js
@@ -18,7 +18,7 @@ const useStyles = makeStyles(theme => ({
},
}));
-const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, type, setType, children }) => {
+const ReportLayoutPage = ({ children, filter }) => {
const classes = useStyles();
return (
<div className={classes.root}>
@@ -27,7 +27,7 @@ const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, type, s
<Grid container spacing={2}>
<Grid item xs={12} md={3} lg={2}>
<Paper className={classes.form}>
- <ReportFilterForm setItems={ setItems } type={ type } setType={ setType } />
+ {filter}
</Paper>
</Grid>
<Grid item xs={12} md={9} lg={10}>