merged branch

This commit was merged in pull request #12.
This commit is contained in:
victorAnumudu
2024-03-16 03:09:41 +01:00
11 changed files with 127 additions and 43 deletions
+5 -1
View File
@@ -1,6 +1,6 @@
import { Route, Routes } from "react-router-dom";
import { RouteHandler } from "./routes";
import { GetStartedPage, HomePage, LoginPage, DashboardHome } from "../pages";
import { GetStartedPage, HomePage, LoginPage, DashboardHome, DashboardLegals, DashboardProfile, DashboardVerification, Dashboardpayments } from "../pages";
import { DashboardAuth } from "../components";
const Routers = () => {
@@ -11,6 +11,10 @@ const Routers = () => {
<Route path={RouteHandler.getStarted} element={<GetStartedPage />} />
<Route element={<DashboardAuth />}>
<Route path={RouteHandler.dashboardHome} element={<DashboardHome />} />
<Route path={RouteHandler.dashboardProfile} element={<DashboardProfile />} />
<Route path={RouteHandler.dashboardVerification} element={<DashboardVerification />} />
<Route path={RouteHandler.dashboardPayments} element={<Dashboardpayments />} />
<Route path={RouteHandler.dashboardLegals} element={<DashboardLegals />} />
</Route>
<Route path='*'element={<>Error Page</>} />
</Routes>
+4
View File
@@ -3,4 +3,8 @@ export class RouteHandler {
static loginpage = '/login'
static getStarted = "/get-started"
static dashboardHome = '/dashboard/home'
static dashboardProfile = '/dashboard/profile'
static dashboardVerification = '/dashboard/verification'
static dashboardPayments = '/dashboard/payments'
static dashboardLegals = '/dashboard/legals'
}