[WIP] Login Logout

This commit is contained in:
2022-05-26 11:10:50 +07:00
parent 38f794a536
commit f6664b3b77
35 changed files with 1913 additions and 1438 deletions

View File

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