Account Edit Page Fixed #34
+1
-2
@@ -53,8 +53,7 @@ export default function SiteRoutes() {
|
|||||||
<Route path={RouteLinks.customTemplates} element={<CustomTemplatePage/>}/> {`*/CUSTOM TEMPLATES PAGE*/`}
|
<Route path={RouteLinks.customTemplates} element={<CustomTemplatePage/>}/> {`*/CUSTOM TEMPLATES PAGE*/`}
|
||||||
|
|
||||||
<Route path={RouteLinks.loansPage} element={<LoansPage/>}/> {`*/LOANS PAGE*/`}
|
<Route path={RouteLinks.loansPage} element={<LoansPage/>}/> {`*/LOANS PAGE*/`}
|
||||||
<Route path={RouteLinks.transaction_details_page}
|
<Route path={RouteLinks.transaction_details_page} element={<TransactionDetailsPage/>}/> {`*/TRANSACTION PAGE*/`}
|
||||||
element={<TransactionDetailsPage/>}/> {`*/TRANSACTION PAGE*/`}
|
|
||||||
<Route path={RouteLinks.subscriptionDetails} element={<SubscriptionDetailsPage/>} />
|
<Route path={RouteLinks.subscriptionDetails} element={<SubscriptionDetailsPage/>} />
|
||||||
</Route>
|
</Route>
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default function AccountEditCom() {
|
|||||||
},
|
},
|
||||||
staleTime: 0, //0 mins
|
staleTime: 0, //0 mins
|
||||||
});
|
});
|
||||||
const accountsViewData = data?.data; // ACCOUNT VIEW DATA
|
const accountsViewData = data?.data; // ACCOUNT EDIT DATA
|
||||||
const account_info = accountsViewData?.account;
|
const account_info = accountsViewData?.account;
|
||||||
|
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ export default function AccountEditCom() {
|
|||||||
<div className="w-full flex flex-col gap-8">
|
<div className="w-full flex flex-col gap-8">
|
||||||
<BreadcrumbCom
|
<BreadcrumbCom
|
||||||
title={`Account Edit [${state?.memberUID}]`}
|
title={`Account Edit [${state?.memberUID}]`}
|
||||||
paths={["Dashboard", "Account View"]}
|
paths={["Dashboard", "Account Edit"]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div className="box bg-white dark:bg-black-box text-black-body dark:text-white-body">
|
<div className="box bg-white dark:bg-black-box text-black-body dark:text-white-body">
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import {Link} from 'react-router-dom'
|
import {Link} from 'react-router-dom'
|
||||||
import Icons from "../Icons";
|
import Icons from "../Icons";
|
||||||
|
import RouteLinks from '../../RouteLinks';
|
||||||
|
|
||||||
export default function CustomerAccountView({accountInfo}) {
|
export default function CustomerAccountView({accountInfo}) {
|
||||||
return <>
|
return <>
|
||||||
@@ -71,7 +72,12 @@ export default function CustomerAccountView({accountInfo}) {
|
|||||||
<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={`/account-edit/${accountInfo?.uid}`}
|
<Link
|
||||||
|
to={`/account-edit/${accountInfo?.uid}`}
|
||||||
|
state={{
|
||||||
|
customerID: accountInfo?.id,
|
||||||
|
memberUID: accountInfo?.uid,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<Icons name='eye'/>
|
<Icons name='eye'/>
|
||||||
</Link>
|
</Link>
|
||||||
|
|||||||
Reference in New Issue
Block a user