side bar update

This commit was merged in pull request #37.
This commit is contained in:
victorAnumudu
2024-07-11 17:31:34 +01:00
parent 2eb12129bb
commit 450ae649c3
34 changed files with 1738 additions and 4 deletions
@@ -38,6 +38,12 @@ const getReadyUsers = (query: string): Promise<UsersQueryResponse> => { // FUNCT
.then((d: AxiosResponse<UsersQueryResponse>) => d.data);
};
const getVerifiedUsers = (query: string): Promise<UsersQueryResponse> => { // FUNCTION TO GET USERS THAT HAVE ARE VERIFIED
return axios
.get(`${NEW_USER_ENDPOINT}/loan/verified`)
.then((d: AxiosResponse<UsersQueryResponse>) => d.data);
};
const getApprovedUsers = (query: string): Promise<UsersQueryResponse> => { // FUNCTION TO GET USERS THAT HAVE APPROVED LOAN APPLICATION
return axios
.get(`${NEW_USER_ENDPOINT}/loan/approved`)
@@ -83,6 +89,7 @@ export {
getRejectedUsers,
getPendingUsers,
getReadyUsers,
getVerifiedUsers,
getApprovedUsers,
employersVerify,
deleteUser,