Fix Build
This commit is contained in:
@@ -70,18 +70,15 @@ export default function Router() {
|
||||
</AuthGuard>
|
||||
</AuthProvider>),
|
||||
children:[
|
||||
{ element: <Navigate to="/dashboard" replace />, index: true },
|
||||
{
|
||||
path: 'dashboard',
|
||||
element: <Dashboard />,
|
||||
},
|
||||
// {
|
||||
// path: 'medicines',
|
||||
// element: <AuthProvider><Medicines /></AuthProvider>,
|
||||
// },
|
||||
// {
|
||||
// path: 'medicines/create',
|
||||
// element: <AuthProvider><MedicinesCreate /></AuthProvider>
|
||||
// },
|
||||
{
|
||||
path: 'members',
|
||||
element: <Members />,
|
||||
},
|
||||
]
|
||||
},
|
||||
// {
|
||||
@@ -123,6 +120,6 @@ const Login = Loadable(lazy(() => import('../pages/auth/Login')));
|
||||
const Dashboard = Loadable(lazy(() => import('../pages/Dashboard')));
|
||||
const NotFound = Loadable(lazy(() => import('../pages/Page404')));
|
||||
|
||||
// Medicines
|
||||
const Medicines = Loadable(lazy(() => import('../pages/Medicines/Index')));
|
||||
// Members
|
||||
const Members = Loadable(lazy(() => import('../pages/Members/Index')));
|
||||
const MedicinesCreate = Loadable(lazy(() => import('../pages/Medicines/Create')));
|
||||
|
||||
Reference in New Issue
Block a user