fixed profile table data

This commit is contained in:
victorAnumudu
2025-09-29 11:06:04 +01:00
parent 1e28046093
commit fd9eb08cea
2 changed files with 50 additions and 29 deletions
@@ -1,40 +1,61 @@
export default function AccountProfileView() { export default function AccountProfileView({profile}) {
return <> return <>
<div className="row" style={{paddingBottom: '20px'}}> <div className="pb-5">
<div className="col-12 col-lg-12"> <div className="flex flex-col gap-1">
<div className="card card-statistics"> <div className="w-full">
<div className="card-header"> <h4 className="font-semibold text-lg">Account Profile</h4>
<div className="card-heading">
<h4 className="card-title"><b>Account Profile</b></h4>
</div>
</div> </div>
<div className="card-body"> <div className="w-full overflow-x-auto">
<div className="table-responsive"> <>
<table className="table table-hover mb-0" <table className="py-2 w-full text-sm" style={{backgroundColor: 'aliceblue', borderRadius: '10px'}}>
style={{width: '100%', backgroundColor: 'aliceblue', borderRadius: '10px'}}> <thead className="py-2 text-sm text-slate-500 text-left">
<thead>
<tr> <tr>
<th scope="col">MemberID</th>
<th scope="col">Practice/Specialization</th> <th scope="col" className="px-2">
<th scope="col">URL NAme</th> Member ID
</th>
<th scope="col" className="px-2">
Practice/specialization
</th>
<th scope="col" className="px-2">
URL Name
</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<tr> {(profile && Object.keys(profile).length > 0) ?
<th scope="row">1</th> <tr className="py-2 border-t border-dashed border-slate-300">
<td> <td className="px-2">
Practice: xxxxx xxxxxx<br/> <div className="text-left">
Specialization: JAJAJJAJAJAJAJAJ <div className="text-base font-semibold">{profile?.member_id}</div>
</td> </div>
<td>url-name-i-picked</td> </td>
</tr> <td className="px-2">
<div className="text-left">
<div className="text-base font-semibold">Practice: {profile?.practice}</div>
<div className="text-base font-semibold">Specialization: {profile?.specialization}</div>
</div>
</td>
<td className="px-2">
<div className="text-left">
<div className="text-base font-semibold">{profile?.url_name}</div>
</div>
</td>
</tr>
:
<tr className="py-2 border-t border-dashed border-slate-300">
<td className="px-3 py-2" colSpan={3}>
<div className="flex justify-center items-center">
No Record Found
</div>
</td>
</tr>
}
</tbody> </tbody>
</table> </table>
</div> </>
</div> </div>
</div> </div>
</div> </div>
</div> </>
</>
} }
@@ -57,7 +57,7 @@ export default function AccountViewCom() {
: :
<> <>
<CustomerAccountView accountInfo={account_info} /> <CustomerAccountView accountInfo={account_info} />
<AccountProfileView /> <AccountProfileView profile={account_profile} />
<CustomerSubscriptionsView subscriptions={subscriptions} memberUID={memberUID} /> <CustomerSubscriptionsView subscriptions={subscriptions} memberUID={memberUID} />
<CustomerPaymentsView payments={payments} /> <CustomerPaymentsView payments={payments} />
</> </>