merged branch
This commit was merged in pull request #12.
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
Reference in New Issue
Block a user