aboutsummaryrefslogtreecommitdiff
path: root/modern/src/reports/StopReportPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-13 10:13:57 -0800
committerGitHub <noreply@github.com>2020-12-13 10:13:57 -0800
commitfca5aa3cdb5d335dca14115722cacae1b724fe4f (patch)
tree542416ca2e13ff811b818d2343e2b487fda97b86 /modern/src/reports/StopReportPage.js
parenta4c2f0477dcda2662a3fd268f77a7549dead6e67 (diff)
parentf8bb2fb5dfd801b7c49a3a3b66042e94dc7640dc (diff)
downloadetbsa-traccar-web-fca5aa3cdb5d335dca14115722cacae1b724fe4f.tar.gz
etbsa-traccar-web-fca5aa3cdb5d335dca14115722cacae1b724fe4f.tar.bz2
etbsa-traccar-web-fca5aa3cdb5d335dca14115722cacae1b724fe4f.zip
Merge pull request #797 from mail2bishnoi/chart-report
Implementing chart report initial structure
Diffstat (limited to 'modern/src/reports/StopReportPage.js')
-rw-r--r--modern/src/reports/StopReportPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js
index 77d3dfa..d06997e 100644
--- a/modern/src/reports/StopReportPage.js
+++ b/modern/src/reports/StopReportPage.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 handleSubmit = async (deviceId, from, to, mail, headers) => {
const query = new URLSearchParams({ deviceId, from, to, mail });
@@ -32,7 +32,7 @@ const StopReportPage = () => {
const [items, setItems] = useState([]);
return (
- <ReportLayoutPage reportFilterForm={ReportFilterForm} setItems={setItems}>
+ <ReportLayoutPage filter={<Filter setItems={setItems} />}>
<TableContainer component={Paper}>
<Table>
<TableHead>