Added new back offcie itesm
This commit is contained in:
@@ -2,6 +2,7 @@ const RouteLinks = {
|
|||||||
loginPage: '/auth/login',
|
loginPage: '/auth/login',
|
||||||
homePage: '/',
|
homePage: '/',
|
||||||
customerPage: '/customer',
|
customerPage: '/customer',
|
||||||
|
accountDetails: '/account-view/*',
|
||||||
subscriptions: '/subscriptions',
|
subscriptions: '/subscriptions',
|
||||||
billings: '/billings',
|
billings: '/billings',
|
||||||
recentSignup: '/recent-signup',
|
recentSignup: '/recent-signup',
|
||||||
@@ -9,6 +10,8 @@ const RouteLinks = {
|
|||||||
transactionsPage: '/transactions',
|
transactionsPage: '/transactions',
|
||||||
products: '/products',
|
products: '/products',
|
||||||
usersAdmin: '/users-admin',
|
usersAdmin: '/users-admin',
|
||||||
|
productTemplates: '/products',
|
||||||
|
customTemplates: '/products',
|
||||||
transaction_details_page: '/transaction/details',
|
transaction_details_page: '/transaction/details',
|
||||||
errorPage: '*',
|
errorPage: '*',
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-1
@@ -16,7 +16,8 @@ import ProductsPage from './pages/ProductsPage' // PRODUCTS PAGE
|
|||||||
import ErrorPage from './pages/ErrorPage';
|
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' // TRANSACTION DETAILS PAGE
|
import TransactionDetailsPage from './pages/TransactionDetailsPage'
|
||||||
|
import AccountDetailsPage from "./pages/AccountDetailsPage"; // TRANSACTION DETAILS PAGE
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -32,6 +33,7 @@ export default function SiteRoutes() {
|
|||||||
<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.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*/`}
|
||||||
|
|||||||
@@ -0,0 +1,18 @@
|
|||||||
|
import {useEffect, useState} from 'react'
|
||||||
|
import {Link} from 'react-router-dom'
|
||||||
|
|
||||||
|
import BreadcrumbCom from '../breadcrumb/BreadcrumbCom'
|
||||||
|
|
||||||
|
export default function AccountViewCom() {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className='w-full flex flex-col gap-8'>
|
||||||
|
<BreadcrumbCom title='Account View [PUT MEMBER_UID]' paths={['Dashboard', 'Account View']}/>
|
||||||
|
|
||||||
|
<div className='box bg-white dark:bg-black-box text-black-body dark:text-white-body'>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -133,7 +133,8 @@ export default function CustomerCom() {
|
|||||||
<div className='flex items-center justify-end gap-3 md:gap-4'>
|
<div className='flex items-center justify-end gap-3 md:gap-4'>
|
||||||
<div
|
<div
|
||||||
className='p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md'>
|
className='p-2 flex justify-center items-center text-slate-500 bg-white-body dark:text-white-body dark:bg-black-body rounded-md'>
|
||||||
<Link to={''} state={{customerID: item?.id}}>
|
<Link to={`/account-view/${item?.member_uid}`}
|
||||||
|
state={{customerID: item?.id}}>
|
||||||
<Icons name='eye'/>
|
<Icons name='eye'/>
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -158,6 +158,8 @@ const asideNavLinks = [
|
|||||||
{
|
{
|
||||||
name: 'Configurations', status: 1, icon: 'arrow-right', subLinks: [
|
name: 'Configurations', status: 1, icon: 'arrow-right', subLinks: [
|
||||||
{name: 'Product Settings', status: 1, icon: 'dot', to: RouteLinks.products},
|
{name: 'Product Settings', status: 1, icon: 'dot', to: RouteLinks.products},
|
||||||
|
{name: 'Product Templates', status: 1, icon: 'dot', to: RouteLinks.productTemplates},
|
||||||
|
{name: 'Custom Templates', status: 1, icon: 'dot', to: RouteLinks.customTemplates},
|
||||||
{name: 'Admin Manager', status: 1, icon: 'dot', to: RouteLinks.usersAdmin},
|
{name: 'Admin Manager', status: 1, icon: 'dot', to: RouteLinks.usersAdmin},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -62,12 +62,13 @@ export default function UsersAdmin() {
|
|||||||
:
|
:
|
||||||
<>
|
<>
|
||||||
{/* filter section */}
|
{/* filter section */}
|
||||||
<div className='px-2 py-2 mb-4 flex flex-col sm:flex-row flex-wrap sm:items-center gap-2'>
|
<div className='px-2 py-2 mb-4 flex flex-col sm:flex-row flex-wrap sm:items-center gap-2' >
|
||||||
<Icons name='filter' className='text-3xl' />
|
<Icons name='filter' className='text-3xl' />
|
||||||
<div className='w-full sm:max-w-48'>
|
<div className='w-full sm:max-w-48'>
|
||||||
<select name='type' value={filter?.type} className='h-10 w-full p-2 rounded-md' onChange={handleFilter}>
|
<select name='type' value={filter?.type} className='h-10 w-full p-2 rounded-md' onChange={handleFilter}>
|
||||||
<option value=''>All</option>
|
<option value=''>All</option>
|
||||||
<option value='name'>Name</option>
|
<option value='name'>Name</option>
|
||||||
|
<option value='username'>Username</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div className='w-full sm:max-w-48'>
|
<div className='w-full sm:max-w-48'>
|
||||||
@@ -90,7 +91,7 @@ export default function UsersAdmin() {
|
|||||||
Added
|
Added
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" className="px-2">
|
<th scope="col" className="px-2">
|
||||||
Firstnane
|
Firstname
|
||||||
</th>
|
</th>
|
||||||
<th scope="col" className="px-2">
|
<th scope="col" className="px-2">
|
||||||
Lastname
|
Lastname
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import AccountViewCom from "../components/account_view/AccountViewCom";
|
||||||
|
export default function AccountDetailsPage() {
|
||||||
|
return (
|
||||||
|
<AccountViewCom />
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user