aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/ReportLayoutPage.js
diff options
context:
space:
mode:
authorAshutosh Bishnoi <mail2bishnoi@gmail.com>2020-11-09 12:30:41 +0530
committerAshutosh Bishnoi <mail2bishnoi@gmail.com>2020-11-09 12:30:41 +0530
commitb0e3a32b65d7485b43befb1feec173f2a575fcd0 (patch)
treea7c9644c726517d803bfb5476b02f4f110c5721a /modern/src/reports/ReportLayoutPage.js
parent449e5e3190d22704a2cb4d7c5ce3e90eaaf16153 (diff)
downloadtrackermap-web-b0e3a32b65d7485b43befb1feec173f2a575fcd0.tar.gz
trackermap-web-b0e3a32b65d7485b43befb1feec173f2a575fcd0.tar.bz2
trackermap-web-b0e3a32b65d7485b43befb1feec173f2a575fcd0.zip
Minor Report Layout Modifications
Diffstat (limited to 'modern/src/reports/ReportLayoutPage.js')
-rw-r--r--modern/src/reports/ReportLayoutPage.js46
1 files changed, 46 insertions, 0 deletions
diff --git a/modern/src/reports/ReportLayoutPage.js b/modern/src/reports/ReportLayoutPage.js
new file mode 100644
index 00000000..57a2cefd
--- /dev/null
+++ b/modern/src/reports/ReportLayoutPage.js
@@ -0,0 +1,46 @@
+import React, { useState } from 'react';
+import { Grid, Paper, makeStyles } from '@material-ui/core';
+import MainToolbar from '../MainToolbar';
+
+const useStyles = makeStyles(theme => ({
+ root: {
+ height: '100%',
+ display: 'flex',
+ flexDirection: 'column',
+ },
+ content: {
+ flex: 1,
+ overflow: 'auto',
+ padding: theme.spacing(2),
+ },
+ form: {
+ padding: theme.spacing(1, 2, 2),
+ },
+}));
+
+const ReportLayoutPage = ({ reportFilterForm:ReportFilterForm, setItems, ...rest }) => {
+ const classes = useStyles();
+
+ const onResult = (data) => {
+ setItems(data);
+ }
+ return (
+ <div className={classes.root}>
+ <MainToolbar />
+ <div className={classes.content}>
+ <Grid container spacing={2}>
+ <Grid item xs={12} md={3} lg={2}>
+ <Paper className={classes.form}>
+ <ReportFilterForm onResult={ onResult } />
+ </Paper>
+ </Grid>
+ <Grid item xs={12} md={9} lg={10}>
+ {rest.children}
+ </Grid>
+ </Grid>
+ </div>
+ </div>
+ );
+}
+
+export default ReportLayoutPage;