Migrate plugin config pages to react-router
This commit is contained in:
parent
20f8f4a745
commit
7fa9b2376c
3 changed files with 65 additions and 9 deletions
|
@ -2,6 +2,7 @@ import React from 'react';
|
|||
import { Navigate, Route, Routes } from 'react-router-dom';
|
||||
|
||||
import ConnectionRequired from '../components/ConnectionRequired';
|
||||
import ServerContentPage from '../components/ServerContentPage';
|
||||
import { LEGACY_ADMIN_ROUTES, LEGACY_USER_ROUTES, toViewManagerPageRoute } from './legacyRoutes';
|
||||
import UserNew from './user/usernew';
|
||||
import Search from './search';
|
||||
|
@ -36,6 +37,10 @@ const AppRoutes = () => (
|
|||
<Route path='userparentalcontrol.html' element={<UserParentalControl />} />
|
||||
<Route path='userpassword.html' element={<UserPassword />} />
|
||||
|
||||
<Route path='configurationpage' element={
|
||||
<ServerContentPage view='/web/configurationpage' />
|
||||
} />
|
||||
|
||||
{LEGACY_ADMIN_ROUTES.map(toViewManagerPageRoute)}
|
||||
</Route>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue