Template congigs pages
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@ const RouteLinks = {
|
|||||||
transactionsPage: '/transactions',
|
transactionsPage: '/transactions',
|
||||||
products: '/products',
|
products: '/products',
|
||||||
usersAdmin: '/users-admin',
|
usersAdmin: '/users-admin',
|
||||||
productTemplates: '/products',
|
productTemplates: '/products-template',
|
||||||
customTemplates: '/products',
|
customTemplates: '/custom-template',
|
||||||
transaction_details_page: '/transaction/details',
|
transaction_details_page: '/transaction/details',
|
||||||
errorPage: '*',
|
errorPage: '*',
|
||||||
}
|
}
|
||||||
|
|||||||
+36
-31
@@ -1,5 +1,5 @@
|
|||||||
import { Suspense } from 'react'
|
import {Suspense} from 'react'
|
||||||
import { Routes, Route } from 'react-router-dom'
|
import {Routes, Route} from 'react-router-dom'
|
||||||
import RouteLinks from './RouteLinks'
|
import RouteLinks from './RouteLinks'
|
||||||
|
|
||||||
import UserExist from './authorization/UserExist'
|
import UserExist from './authorization/UserExist'
|
||||||
@@ -17,40 +17,45 @@ import ErrorPage from './pages/ErrorPage';
|
|||||||
|
|
||||||
import LoansPage from './pages/LoansPage' // SELECTED LOANS PAGE
|
import LoansPage from './pages/LoansPage' // SELECTED LOANS PAGE
|
||||||
import TransactionDetailsPage from './pages/TransactionDetailsPage'
|
import TransactionDetailsPage from './pages/TransactionDetailsPage'
|
||||||
import AccountDetailsPage from "./pages/AccountDetailsPage"; // TRANSACTION DETAILS PAGE
|
import AccountDetailsPage from "./pages/AccountDetailsPage";
|
||||||
|
import ProductTemplatePage from "./pages/ProductTemplatePage";
|
||||||
|
import CustomTemplatePage from "./pages/CustomTemplatePage"; // TRANSACTION DETAILS PAGE
|
||||||
|
|
||||||
|
|
||||||
// const Home = lazy(() => import('./pages/Home'));
|
// const Home = lazy(() => import('./pages/Home'));
|
||||||
|
|
||||||
export default function SiteRoutes() {
|
export default function SiteRoutes() {
|
||||||
return (
|
return (
|
||||||
<Routes>
|
<Routes>
|
||||||
<Route path={RouteLinks.loginPage} element={<LoginPage />} /> {`*/LOGIN PAGE*/`}
|
<Route path={RouteLinks.loginPage} element={<LoginPage/>}/> {`*/LOGIN PAGE*/`}
|
||||||
|
|
||||||
<Route element={<UserExist />}>
|
<Route element={<UserExist/>}>
|
||||||
<Route path={RouteLinks.homePage} element={<HomePage />} /> {`*/HOME PAGE*/`}
|
<Route path={RouteLinks.homePage} element={<HomePage/>}/> {`*/HOME PAGE*/`}
|
||||||
<Route path={RouteLinks.recentSignup} element={<RecentSignupPage />} /> {`*/RECENT SIGNUP PAGE*/`}
|
<Route path={RouteLinks.recentSignup} element={<RecentSignupPage/>}/> {`*/RECENT SIGNUP PAGE*/`}
|
||||||
<Route path={RouteLinks.subscriptions} element={<SubscriptionsPage />} /> {`*/SUBSCRIPTIONS PAGE*/`}
|
<Route path={RouteLinks.subscriptions} element={<SubscriptionsPage/>}/> {`*/SUBSCRIPTIONS PAGE*/`}
|
||||||
<Route path={RouteLinks.customerPage} element={<CustomerPage />} /> {`*/CUSTOMER PAGE*/`}
|
<Route path={RouteLinks.customerPage} element={<CustomerPage/>}/> {`*/CUSTOMER PAGE*/`}
|
||||||
<Route path={RouteLinks.accountDetails} element={<AccountDetailsPage />} /> {`*/CUSTOMER PAGE*/`}
|
<Route path={RouteLinks.accountDetails} element={<AccountDetailsPage/>}/> {`*/CUSTOMER PAGE*/`}
|
||||||
<Route path={RouteLinks.billings} element={<BillingsPage />} /> {`*/BILLINGS PAGE*/`}
|
<Route path={RouteLinks.billings} element={<BillingsPage/>}/> {`*/BILLINGS PAGE*/`}
|
||||||
<Route path={RouteLinks.products} element={<ProductsPage />} /> {`*/PRODUCTS PAGE*/`}
|
<Route path={RouteLinks.products} element={<ProductsPage/>}/> {`*/PRODUCTS PAGE*/`}
|
||||||
<Route path={RouteLinks.usersAdmin} element={<UsersAdminPage />} /> {`*/ADMIN USERS PAGE*/`}
|
<Route path={RouteLinks.usersAdmin} element={<UsersAdminPage/>}/> {`*/ADMIN USERS PAGE*/`}
|
||||||
|
|
||||||
<Route path={RouteLinks.loansPage} element={<LoansPage />} /> {`*/LOANS PAGE*/`}
|
|
||||||
<Route path={RouteLinks.transaction_details_page} element={<TransactionDetailsPage />} /> {`*/TRANSACTION PAGE*/`}
|
|
||||||
</Route>
|
|
||||||
|
|
||||||
{/* ERROR PAGE */}
|
<Route path={RouteLinks.productTemplates} element={<ProductTemplatePage/>}/> {`*/PRODUCTS TEMPLATE PAGE*/`}
|
||||||
<Route
|
<Route path={RouteLinks.customTemplates} element={<CustomTemplatePage/>}/> {`*/CUSTOM TEMPLATES PAGE*/`}
|
||||||
path={RouteLinks.errorPage} // error page
|
|
||||||
element={
|
<Route path={RouteLinks.loansPage} element={<LoansPage/>}/> {`*/LOANS PAGE*/`}
|
||||||
<Suspense fallback={<PageLoader />}>
|
<Route path={RouteLinks.transaction_details_page}
|
||||||
<ErrorPage />
|
element={<TransactionDetailsPage/>}/> {`*/TRANSACTION PAGE*/`}
|
||||||
</Suspense>
|
</Route>
|
||||||
}
|
|
||||||
/>
|
{/* ERROR PAGE */}
|
||||||
</Routes>
|
<Route
|
||||||
)
|
path={RouteLinks.errorPage} // error page
|
||||||
|
element={
|
||||||
|
<Suspense fallback={<PageLoader/>}>
|
||||||
|
<ErrorPage/>
|
||||||
|
</Suspense>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</Routes>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import ProductsCom from '../components/products/ProductsCom'
|
||||||
|
|
||||||
|
export default function CustomTemplatePage() {
|
||||||
|
return (
|
||||||
|
<ProductsCom />
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import ProductsCom from '../components/products/ProductsCom'
|
||||||
|
|
||||||
|
export default function ProductTemplatePage() {
|
||||||
|
return (
|
||||||
|
<ProductsCom />
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user