pending loan list added

This commit was merged in pull request #51.
This commit is contained in:
victorAnumudu
2024-05-06 16:52:00 +01:00
parent a2e039eab4
commit 408777353d
5 changed files with 62 additions and 33 deletions
+8 -1
View File
@@ -26,11 +26,18 @@ export const applyForLoan = (postData:any) => {
return postAuxEnd('/loan/apply', reqData)
}
// FUNCTION TO GET USER BY CUSTOMER UID
export const getUserByID = (uid:string) => {
let reqData = {
// customer_uid: localStorage.getItem('uid'),
}
return getAuxEnd(`/profile?uid=${uid}`, reqData)
}
// FUNCTION TO GET USER BY CUSTOMER UID
export const getUserPendingLoanList = (uid:string) => {
let reqData = {
// customer_uid: localStorage.getItem('uid'),
}
return getAuxEnd(`/dash?uid=${uid}`, reqData)
}
+10 -1
View File
@@ -15,4 +15,13 @@ export interface User {
token?:string
customer_uid?:string
call_return?:string
}
}
export type PendingTableList = {
status?: string | boolean;
application_uid?: string
added?: string
loan_amount?: string
payment_month?: string
}[];