Web: Client: Settings: fix

This commit is contained in:
Viktor Fomin 2022-03-31 00:40:39 +03:00
parent ab8bc6e7dc
commit c1f7a0f880
2 changed files with 9 additions and 14 deletions

View File

@ -4,7 +4,6 @@ import { withRouter } from "react-router";
import Layout from "./Layout";
import { combineUrl } from "@appserver/common/utils";
import AppServerConfig from "@appserver/common/constants/AppServerConfig";
import { isMobile } from "react-device-detect";
const SecuritySettings = lazy(() => import("./categories/security/index.js"));
const Admins = lazy(() =>
@ -96,11 +95,7 @@ const Settings = () => {
/> */}
<Route exact path={SECURITY_URLS} component={SecuritySettings} />
<Route path={ADMINS_URL} component={Admins} />
<Route
exact
path={TFA_PAGE_URL}
component={isMobile ? TfaPage : SecuritySettings}
/>
<Route exact path={TFA_PAGE_URL} component={TfaPage} />
<Route exact path={THIRD_PARTY_URL} component={ThirdPartyServices} />
<Route

View File

@ -55,30 +55,30 @@ export const settingsTree = [
{
key: "1-0",
icon: "",
link: "access-rights",
tKey: "AccessRights",
link: "access-portal",
tKey: "PortalAccess",
isCategory: true,
children: [
{
key: "1-0-0",
icon: "",
link: "admins",
tKey: "Admins",
link: "tfa",
tKey: "TwoFactorAuth",
},
],
},
{
key: "1-1",
icon: "",
link: "access-portal",
tKey: "PortalAccess",
link: "access-rights",
tKey: "AccessRights",
isCategory: true,
children: [
{
key: "1-1-0",
icon: "",
link: "tfa",
tKey: "TwoFactorAuth",
link: "admins",
tKey: "Admins",
},
],
},