aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/OptionsLayout
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-09-03 00:21:33 -0700
commit105e4ec887e249ec47db83095504012bad22df80 (patch)
tree0ca61c0015b1941362de8d2a82a005a88659dca4 /modern/src/settings/OptionsLayout
parente6f906dbb565abdb29297ec67db3c922135c628c (diff)
downloadetbsa-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.js6
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(