Add routing
This commit is contained in:
parent
a1f53b16c4
commit
153a420674
@ -1,4 +1,4 @@
|
||||
import React, { lazy,Suspense } from "react";
|
||||
import React, { lazy, Suspense } from "react";
|
||||
import { Route, Switch, Redirect } from "react-router-dom";
|
||||
import { withRouter } from "react-router";
|
||||
import Layout from './Layout';
|
||||
@ -6,6 +6,7 @@ import { Loader } from "asc-web-components";
|
||||
|
||||
const CommonSettings = lazy(() => import("./categories/common"));
|
||||
const SecuritySettings = lazy(() => import("./categories/security"));
|
||||
const IntegrationSettings = lazy(() => import("./categories/integration"));
|
||||
|
||||
const Settings = () => {
|
||||
const basePath = '/settings';
|
||||
@ -18,6 +19,10 @@ const Settings = () => {
|
||||
path={`${basePath}/security`}
|
||||
component={SecuritySettings}
|
||||
/>
|
||||
<Route
|
||||
path={`${basePath}/integration`}
|
||||
component={IntegrationSettings}
|
||||
/>
|
||||
<Route
|
||||
path={[`${basePath}/common`, basePath]}
|
||||
component={CommonSettings}
|
||||
|
@ -36,6 +36,20 @@ export const settingsTree = [
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
key: '3',
|
||||
icon: 'SettingsIcon',
|
||||
link: 'integration',
|
||||
tKey: 'ManagementCategoryIntegration',
|
||||
children: [
|
||||
{
|
||||
key: '3-0',
|
||||
icon: '',
|
||||
link: 'third-party-services',
|
||||
tKey: 'ThirdPartyAuthorization',
|
||||
},
|
||||
]
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user