diff options
author | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-12-13 19:31:39 +0530 |
---|---|---|
committer | Ashutosh Bishnoi <mail2bishnoi@gmail.com> | 2020-12-13 19:31:39 +0530 |
commit | f8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc (patch) | |
tree | fdf695dee1e1482b871675cbaa1c240c80e2c24f /modern/src/reports/SummaryReportPage.js | |
parent | 63cd33bd73ff5cdd6a619e271281f846d66f8a0a (diff) | |
download | trackermap-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/SummaryReportPage.js')
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index dcd3323c..5cfd857d 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -6,7 +6,7 @@ import ReportFilter from './ReportFilter'; import ReportLayoutPage from './ReportLayoutPage'; import { useAttributePreference } from '../common/preferences'; -const ReportFilterForm = ({ setItems }) => { +const Filter = ({ setItems }) => { const [daily, setDaily] = useState(false); @@ -41,7 +41,7 @@ const SummaryReportPage = () => { const [items, setItems] = useState([]); return ( - <ReportLayoutPage reportFilterForm={ReportFilterForm} setItems={setItems}> + <ReportLayoutPage filter={<Filter setItems={setItems} />}> <TableContainer component={Paper}> <Table> <TableHead> |