updated loan details page #41

Merged
ameye merged 1 commits from loan-details-update into master 2024-07-15 17:00:34 +00:00
@@ -26,7 +26,6 @@ export default function ApproveRejectPage() {
} }
getVerifiedLoanDetailsByUID(selectedUser?.uid).then(res => { getVerifiedLoanDetailsByUID(selectedUser?.uid).then(res => {
setLoanDetails({loading:false, data:res?.data}) setLoanDetails({loading:false, data:res?.data})
console.log('DATA', res?.data?.application)
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
setLoanDetails({loading:false, data:null}) setLoanDetails({loading:false, data:null})
@@ -73,20 +72,34 @@ export default function ApproveRejectPage() {
</button> </button>
</div> </div>
</div> </div>
<div className="card card-flash flex flex-col p-4 h-md-50 mb-5 mb-xl-10 bg-secondary"> <div className="card card-flash flex flex-col p-4 h-md-50 mb-5 mb-xl-10 bg-secondary overflow-scroll">
<h3 className='card-title text-gray-800 fw-bold mb-5'>Verification details</h3> <h3 className='card-title text-gray-800 fw-bold mb-5'>Verification details</h3>
<div className='w-100'> <div className='w-100'>
{loanDetails?.data?.verification.length > 0 ? {loanDetails?.data?.verification.length > 0 ?
<table className='w-100'> <table className='w-100'>
<tr>
<th>UID</th>
<th>EMPLOYER NAME</th>
</tr>
{loanDetails?.data?.verification?.map((item:any) => ( {loanDetails?.data?.verification?.map((item:any) => (
<tr key={item.uid || item.id}> <tbody key={item.uid || item.id}>
<td>{item.uid}</td> <tr>
<td>{item.employers_name}</td> <th className='text-uppercase py-3'>uid</th>
</tr> <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>
</tbody>
))} ))}
</table> </table>
: :