diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 00:21:33 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-09-03 00:21:33 -0700 |
commit | 105e4ec887e249ec47db83095504012bad22df80 (patch) | |
tree | 0ca61c0015b1941362de8d2a82a005a88659dca4 /modern/src/settings/OptionsLayout | |
parent | e6f906dbb565abdb29297ec67db3c922135c628c (diff) | |
download | etbsa-traccar-web-105e4ec887e249ec47db83095504012bad22df80.tar.gz etbsa-traccar-web-105e4ec887e249ec47db83095504012bad22df80.tar.bz2 etbsa-traccar-web-105e4ec887e249ec47db83095504012bad22df80.zip |
More translation migrations
Diffstat (limited to 'modern/src/settings/OptionsLayout')
-rw-r--r-- | modern/src/settings/OptionsLayout/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js index dd96919..fea0372 100644 --- a/modern/src/settings/OptionsLayout/index.js +++ b/modern/src/settings/OptionsLayout/index.js @@ -13,8 +13,8 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack'; import SideNav from '../../components/SideNav'; import NavBar from '../../components/NavBar'; -import t from '../../LocalizationProvider'; import useRoutes from './useRoutes'; +import { useTranslation } from '../../LocalizationProvider'; const useStyles = makeStyles((theme) => ({ root: { @@ -54,9 +54,11 @@ const OptionsLayout = ({ children }) => { const classes = useStyles(); const location = useLocation(); const history = useHistory(); + const routes = useRoutes(); + const t = useTranslation(); + const [openDrawer, setOpenDrawer] = useState(false); const [optionTitle, setOptionTitle] = useState(); - const routes = useRoutes(); useEffect(() => { const activeRoute = routes.find( |