Fix Build

This commit is contained in:
2022-05-26 12:50:15 +07:00
parent 12c298b9a0
commit 720eff969d
9 changed files with 509 additions and 57 deletions

View File

@@ -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')));