diff options
| author | James Elliott <james-d-elliott@users.noreply.github.com> | 2023-10-22 10:00:20 +1100 | 
|---|---|---|
| committer | James Elliott <james-d-elliott@users.noreply.github.com> | 2024-03-04 20:29:11 +1100 | 
| commit | 7b73ef949e53275286f38ff4b670512db69d9576 (patch) | |
| tree | f6f4c81a98d352bfc36d692a98e924a75282f958 /web/src/layouts/SettingsLayout.tsx | |
| parent | 13837b7b84e561981b081f7f67f3775893377d5b (diff) | |
refactor: adjust layouts
Signed-off-by: James Elliott <james-d-elliott@users.noreply.github.com>
Diffstat (limited to 'web/src/layouts/SettingsLayout.tsx')
| -rw-r--r-- | web/src/layouts/SettingsLayout.tsx | 17 | 
1 files changed, 3 insertions, 14 deletions
diff --git a/web/src/layouts/SettingsLayout.tsx b/web/src/layouts/SettingsLayout.tsx index 78249dd03..308ea3ff4 100644 --- a/web/src/layouts/SettingsLayout.tsx +++ b/web/src/layouts/SettingsLayout.tsx @@ -1,6 +1,6 @@  import React, { ReactNode, SyntheticEvent, useCallback, useEffect, useState } from "react"; -import { Close, Dashboard, Menu, ScienceOutlined, SystemSecurityUpdateGood } from "@mui/icons-material"; +import { Close, Dashboard, Menu, SystemSecurityUpdateGood } from "@mui/icons-material";  import {      AppBar,      Box, @@ -17,12 +17,7 @@ import {  import IconButton from "@mui/material/IconButton";  import { useTranslation } from "react-i18next"; -import { -    IndexRoute, -    SettingsRoute, -    SettingsTestSubRoute, -    SettingsTwoFactorAuthenticationSubRoute, -} from "@constants/Routes"; +import { IndexRoute, SettingsRoute, SettingsTwoFactorAuthenticationSubRoute } from "@constants/Routes";  import { useRouterNavigate } from "@hooks/RouterNavigate";  export interface Props { @@ -106,7 +101,7 @@ const SettingsLayout = function (props: Props) {                      <Typography                          variant="h6"                          component={"div"} -                        sx={{ flexGrow: 1, display: { xs: "none", sm: drawerOpen ? "none" : "block" } }} +                        sx={{ flexGrow: 1, display: { xs: drawerOpen ? "none" : "block" } }}                      >                          {translate("Settings")}                      </Typography> @@ -153,12 +148,6 @@ const navItems: NavItem[] = [          pathname: `${SettingsRoute}${SettingsTwoFactorAuthenticationSubRoute}`,          icon: <SystemSecurityUpdateGood color={"primary"} />,      }, -    { -        keyname: "test", -        text: "Test", -        pathname: `${SettingsRoute}${SettingsTestSubRoute}`, -        icon: <ScienceOutlined color={"primary"} />, -    },      { keyname: "close", text: "Close", pathname: IndexRoute, icon: <Close color={"error"} /> },  ];  | 
