added dashboard layout

This commit is contained in:
victorAnumudu
2024-03-16 02:53:40 +01:00
parent 90dc2adb92
commit 7cbfae619b
14 changed files with 221 additions and 7 deletions
+6 -1
View File
@@ -1,6 +1,7 @@
import { Route, Routes } from "react-router-dom";
import { RouteHandler } from "./routes";
import { GetStartedPage, HomePage, LoginPage } from "../pages";
import { GetStartedPage, HomePage, LoginPage, DashboardHome } from "../pages";
import { DashboardAuth } from "../components";
const Routers = () => {
return (
@@ -8,6 +9,10 @@ const Routers = () => {
<Route path={RouteHandler.homepage} element={<HomePage />} />
<Route path={RouteHandler.loginpage} element={<LoginPage />} />
<Route path={RouteHandler.getStarted} element={<GetStartedPage />} />
<Route element={<DashboardAuth />}>
<Route path={RouteHandler.dashboardHome} element={<DashboardHome />} />
</Route>
<Route path='*'element={<>Error Page</>} />
</Routes>
);
};
+1
View File
@@ -2,4 +2,5 @@ export class RouteHandler {
static homepage = "/"
static loginpage = '/login'
static getStarted = "/get-started"
static dashboardHome = '/dashboard/home'
}