Web: Client: Settings: fix
This commit is contained in:
parent
ab8bc6e7dc
commit
c1f7a0f880
@ -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
|
||||
|
@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user