diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 20:44:13 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-02 20:44:13 -0700 |
commit | 8d953869da0b79941987ab1dc6eb00e643ee5d81 (patch) | |
tree | 30247cb60ef6b7577224b5e74df52c7c23b2d011 /modern/src/reports | |
parent | e07d5ff079527da0c07c4f8ede0aaef272517393 (diff) | |
download | trackermap-web-8d953869da0b79941987ab1dc6eb00e643ee5d81.tar.gz trackermap-web-8d953869da0b79941987ab1dc6eb00e643ee5d81.tar.bz2 trackermap-web-8d953869da0b79941987ab1dc6eb00e643ee5d81.zip |
Move localization provider
Diffstat (limited to 'modern/src/reports')
-rw-r--r-- | modern/src/reports/ChartReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/EventReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/ReplayPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/ReportFilter.js | 2 | ||||
-rw-r--r-- | modern/src/reports/ReportLayout.js | 2 | ||||
-rw-r--r-- | modern/src/reports/RouteReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/StopReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/SummaryReportPage.js | 2 | ||||
-rw-r--r-- | modern/src/reports/TripReportPage.js | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/modern/src/reports/ChartReportPage.js b/modern/src/reports/ChartReportPage.js index c55ed6d5..ba476ef8 100644 --- a/modern/src/reports/ChartReportPage.js +++ b/modern/src/reports/ChartReportPage.js @@ -8,7 +8,7 @@ import Graph from './Graph'; import { useAttributePreference } from '../common/preferences'; import { formatDate } from '../common/formatter'; import { speedFromKnots } from '../common/converter'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ children, setItems }) => { const speedUnit = useAttributePreference('speedUnit'); diff --git a/modern/src/reports/EventReportPage.js b/modern/src/reports/EventReportPage.js index b5c3daeb..1c40c3c7 100644 --- a/modern/src/reports/EventReportPage.js +++ b/modern/src/reports/EventReportPage.js @@ -9,7 +9,7 @@ import { formatDate } from '../common/formatter'; import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { prefixString } from '../common/stringUtils'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ setItems }) => { const [eventTypes, setEventTypes] = useState(['allEvents']); diff --git a/modern/src/reports/ReplayPage.js b/modern/src/reports/ReplayPage.js index 12bbd351..c1a8d92c 100644 --- a/modern/src/reports/ReplayPage.js +++ b/modern/src/reports/ReplayPage.js @@ -5,7 +5,7 @@ import { import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; import MainToolbar from '../MainToolbar'; import Map from '../map/Map'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; import ReplayPathMap from '../map/ReplayPathMap'; import PositionsMap from '../map/PositionsMap'; import { formatPosition } from '../common/formatter'; diff --git a/modern/src/reports/ReportFilter.js b/modern/src/reports/ReportFilter.js index dec8d018..56f3e5d7 100644 --- a/modern/src/reports/ReportFilter.js +++ b/modern/src/reports/ReportFilter.js @@ -4,7 +4,7 @@ import { } from '@material-ui/core'; import { useSelector } from 'react-redux'; import moment from 'moment'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const ReportFilter = ({ children, handleSubmit, showOnly }) => { const devices = useSelector((state) => Object.values(state.devices.items)); diff --git a/modern/src/reports/ReportLayout.js b/modern/src/reports/ReportLayout.js index 69487f28..67d2ab70 100644 --- a/modern/src/reports/ReportLayout.js +++ b/modern/src/reports/ReportLayout.js @@ -13,7 +13,7 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import SideNav from '../components/SideNav'; import NavBar from '../components/NavBar'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const useStyles = makeStyles((theme) => ({ root: { diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index fffcdcb5..185486bc 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -8,7 +8,7 @@ import { import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { useAttributePreference, usePreference } from '../common/preferences'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ setItems }) => { const handleSubmit = async (deviceId, from, to, mail, headers) => { diff --git a/modern/src/reports/StopReportPage.js b/modern/src/reports/StopReportPage.js index d2e7e7ed..c00c2383 100644 --- a/modern/src/reports/StopReportPage.js +++ b/modern/src/reports/StopReportPage.js @@ -7,7 +7,7 @@ import { import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { useAttributePreference } from '../common/preferences'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ setItems }) => { const handleSubmit = async (deviceId, from, to, mail, headers) => { diff --git a/modern/src/reports/SummaryReportPage.js b/modern/src/reports/SummaryReportPage.js index 4523e652..d606dda2 100644 --- a/modern/src/reports/SummaryReportPage.js +++ b/modern/src/reports/SummaryReportPage.js @@ -8,7 +8,7 @@ import { import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { useAttributePreference } from '../common/preferences'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ setItems }) => { const [daily, setDaily] = useState(false); diff --git a/modern/src/reports/TripReportPage.js b/modern/src/reports/TripReportPage.js index f611dde1..4fa6a340 100644 --- a/modern/src/reports/TripReportPage.js +++ b/modern/src/reports/TripReportPage.js @@ -7,7 +7,7 @@ import { import ReportFilter from './ReportFilter'; import ReportLayout from './ReportLayout'; import { useAttributePreference } from '../common/preferences'; -import t from '../common/localization'; +import t from '../LocalizationProvider'; const Filter = ({ setItems }) => { const handleSubmit = async (deviceId, from, to, mail, headers) => { |