diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 23:20:12 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 23:20:12 -0700 |
commit | e6f906dbb565abdb29297ec67db3c922135c628c (patch) | |
tree | a6d1c89436d066ec9171b6a68e8d5e7eeb56d2de /modern/src/reports/EventReportPage.js | |
parent | e5f07d30df69c1fff28cf1ff8502e4843a8b543c (diff) | |
download | trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.gz trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.tar.bz2 trackermap-web-e6f906dbb565abdb29297ec67db3c922135c628c.zip |
Migrate components
Diffstat (limited to 'modern/src/reports/EventReportPage.js')
-rw-r--r-- | modern/src/reports/EventReportPage.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index 1c40c3c7..b76ee955 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -9,9 +9,11 @@ import { formatDate } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { prefixString } from '../common/stringUtils'; -import t from '../LocalizationProvider'; +import { useTranslation } from '../LocalizationProvider'; const Filter = ({ setItems }) => { + const t = useTranslation(); + const [eventTypes, setEventTypes] = useState(['allEvents']); const handleSubmit = async (deviceId, from, to, mail, headers) => { @@ -65,7 +67,10 @@ const Filter = ({ setItems }) => { const EventReportPage = () => { const theme = useTheme(); + const t = useTranslation(); + const geofences = useSelector((state) => state.geofences.items); + const [items, setItems] = useState([]); const formatGeofence = (value) => { |