[WIP] Login Logout
This commit is contained in:
@@ -60,6 +60,10 @@ export default function Router() {
|
||||
path: '/',
|
||||
element: <DashboardLayout />,
|
||||
children:[
|
||||
{
|
||||
path: 'dashboard',
|
||||
element: <AuthProvider><Dashboard /></AuthProvider>,
|
||||
},
|
||||
{
|
||||
path: 'medicines',
|
||||
element: <AuthProvider><Medicines /></AuthProvider>,
|
||||
@@ -105,14 +109,10 @@ export default function Router() {
|
||||
|
||||
const Login = Loadable(lazy(() => import('../pages/auth/Login')));
|
||||
|
||||
// Dashboard
|
||||
const Dashboard = Loadable(lazy(() => import('../pages/Dashboard')));
|
||||
const NotFound = Loadable(lazy(() => import('../pages/Page404')));
|
||||
|
||||
// Medicines
|
||||
const Medicines = Loadable(lazy(() => import('../pages/Medicines/Index')));
|
||||
const MedicinesCreate = Loadable(lazy(() => import('../pages/Medicines/Create')));
|
||||
|
||||
// Dashboard
|
||||
const PageOne = Loadable(lazy(() => import('../pages/PageOne')));
|
||||
const PageTwo = Loadable(lazy(() => import('../pages/PageTwo')));
|
||||
const PageThree = Loadable(lazy(() => import('../pages/PageThree')));
|
||||
const PageFour = Loadable(lazy(() => import('../pages/PageFour')));
|
||||
const PageSix = Loadable(lazy(() => import('../pages/PageSix')));
|
||||
const NotFound = Loadable(lazy(() => import('../pages/Page404')));
|
||||
|
||||
Reference in New Issue
Block a user