Update routing and sidebar links to remove '/central' prefix
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import { Navigate } from 'react-router';
|
||||
import type { RouteObject } from 'react-router';
|
||||
import { CentralLayout } from './CentralLayout';
|
||||
import { NotFoundPage } from './pages/NotFoundPage';
|
||||
@@ -16,10 +15,6 @@ import {
|
||||
export const routes: RouteObject[] = [
|
||||
{
|
||||
path: '/',
|
||||
element: <Navigate to="/central" replace />,
|
||||
},
|
||||
{
|
||||
path: '/central',
|
||||
element: <CentralLayout />,
|
||||
children: [
|
||||
{ index: true, element: <DashboardPage /> },
|
||||
|
||||
Reference in New Issue
Block a user