made all data to show on details column

This commit was merged in pull request #45.
This commit is contained in:
victorAnumudu
2024-07-15 18:13:28 +01:00
parent 704681c32d
commit fa46cae1cc
@@ -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>