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/MainPage.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/MainPage.js')
-rw-r--r-- | modern/src/MainPage.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modern/src/MainPage.js b/modern/src/MainPage.js index 5a8d4ce8..ea32fb33 100644 --- a/modern/src/MainPage.js +++ b/modern/src/MainPage.js @@ -19,7 +19,7 @@ import GeofenceMap from './map/GeofenceMap'; import CurrentPositionsMap from './map/CurrentPositionsMap'; import CurrentLocationMap from './map/CurrentLocationMap'; import BottomNav from './components/BottomNav'; -import t from './LocalizationProvider'; +import { useTranslation } from './LocalizationProvider'; const useStyles = makeStyles((theme) => ({ root: { @@ -91,6 +91,7 @@ const MainPage = () => { const classes = useStyles(); const history = useHistory(); const theme = useTheme(); + const t = useTranslation(); const isTablet = useMediaQuery(theme.breakpoints.down('md')); const isPhone = useMediaQuery(theme.breakpoints.down('xs')); |