From 105e4ec887e249ec47db83095504012bad22df80 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Fri, 3 Sep 2021 00:21:33 -0700 Subject: More translation migrations --- modern/src/settings/OptionsLayout/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modern/src/settings/OptionsLayout') 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( -- cgit v1.2.3