added Terms and Condition Page

This commit is contained in:
Ebube
2024-03-18 17:23:04 +01:00
parent db08d1201c
commit df6fe828e3
12 changed files with 890 additions and 32 deletions
+36 -7
View File
@@ -1,6 +1,16 @@
import { Route, Routes } from "react-router-dom";
import { RouteHandler } from "./routes";
import { GetStartedPage, HomePage, LoginPage, DashboardHomePage, DashboardLegalsPage, DashboardProfilePage, DashboardVerificationPage, DashboardpaymentsPage } from "../pages";
import {
GetStartedPage,
HomePage,
LoginPage,
DashboardHomePage,
DashboardLegalsPage,
DashboardProfilePage,
DashboardVerificationPage,
DashboardpaymentsPage,
TermsAndConditionPage,
} from "../pages";
import { DashboardAuth } from "../components";
const Routers = () => {
@@ -9,14 +19,33 @@ const Routers = () => {
<Route path={RouteHandler.homepage} element={<HomePage />} />
<Route path={RouteHandler.loginpage} element={<LoginPage />} />
<Route path={RouteHandler.getStarted} element={<GetStartedPage />} />
<Route
path={RouteHandler.termsAndConditions}
element={<TermsAndConditionPage />}
/>
<Route element={<DashboardAuth />}>
<Route path={RouteHandler.dashboardHome} element={<DashboardHomePage />} />
<Route path={RouteHandler.dashboardProfile} element={<DashboardProfilePage />} />
<Route path={RouteHandler.dashboardVerification} element={<DashboardVerificationPage />} />
<Route path={RouteHandler.dashboardPayments} element={<DashboardpaymentsPage />} />
<Route path={RouteHandler.dashboardLegals} element={<DashboardLegalsPage />} />
<Route
path={RouteHandler.dashboardHome}
element={<DashboardHomePage />}
/>
<Route
path={RouteHandler.dashboardProfile}
element={<DashboardProfilePage />}
/>
<Route
path={RouteHandler.dashboardVerification}
element={<DashboardVerificationPage />}
/>
<Route
path={RouteHandler.dashboardPayments}
element={<DashboardpaymentsPage />}
/>
<Route
path={RouteHandler.dashboardLegals}
element={<DashboardLegalsPage />}
/>
</Route>
<Route path='*'element={<>Error Page</>} />
<Route path="*" element={<>Error Page</>} />
</Routes>
);
};
+10 -9
View File
@@ -1,10 +1,11 @@
export class RouteHandler {
static homepage = "/"
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'
}
static homepage = "/";
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";
static termsAndConditions = "/terms-and-conditions";
}