Displays all data return for loan detail #45

Merged
ameye merged 1 commits from loan-details-display into master 2024-07-15 17:16:37 +00:00
@@ -79,26 +79,12 @@ export default function ApproveRejectPage() {
<table className='w-100'>
{loanDetails?.data?.verification?.map((item:any) => (
<tbody key={item.uid || item.id}>
<tr>
<th className='text-uppercase py-3'>uid</th>
<td>{item.uid}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Designation</th>
<td>{item.designation}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Employers Name</th>
<td>{item.employers_name}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Grade</th>
<td>{item.grade}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Status</th>
<td>{item.status}</td>
</tr>
{Object.keys(item).map(key => (
<tr>
<th className='text-uppercase py-3'>{key}</th>
<td>{item[key]}</td>
</tr>
))}
</tbody>
))}
</table>
@@ -119,38 +105,12 @@ export default function ApproveRejectPage() {
<table className='w-100'>
{loanDetails?.data?.application?.map((item:any) => (
<tbody key={item.uid || item.id}>
<tr>
<th className='text-uppercase py-3'>uid</th>
<td>{item.uid}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Amount</th>
<td>{item.loan_amount}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Payment Month</th>
<td>{item.loan_amount}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Sales Agent</th>
<td>{item.sales_agent}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Gender</th>
<td>{item.gender || 'Others'}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Marital Status</th>
<td>{item.marital_status}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Email</th>
<td>{item.email}</td>
</tr>
<tr>
<th className='text-uppercase py-3'>Address</th>
<td>{item.address}</td>
</tr>
{Object.keys(item).map(key => (
<tr>
<th className='text-uppercase py-3'>{key}</th>
<td className='flex text-break'>{item[key]}</td>
</tr>
))}
</tbody>
))}
</table>