diff --git a/src/app/modules/process/core/_requests.ts b/src/app/modules/process/core/_requests.ts index 4ada44f..14564fb 100644 --- a/src/app/modules/process/core/_requests.ts +++ b/src/app/modules/process/core/_requests.ts @@ -1,6 +1,7 @@ import axios, { AxiosResponse } from "axios"; import { ID, Response } from "../../../../_digifi/helpers" import { User, UsersQueryResponse } from "./_models"; +import { postAuxEnd } from "../../auth/core/AxiosCallHelper"; const API_URL = import.meta.env.VITE_APP_THEME_API_URL; const USER_URL = `${API_URL}/user`; @@ -43,6 +44,10 @@ const getApprovedUsers = (query: string): Promise => { // FU .then((d: AxiosResponse) => d.data); }; +const employersVerify = (uid: ID): Promise => { // FUNCTION FOR EMPLOYERS VERIFICATION + return postAuxEnd('/employers/verify', {employer_uid:uid}) +}; + const getUserById = (id: ID): Promise => { return axios .get(`${USER_URL}/${id}`) @@ -79,6 +84,7 @@ export { getPendingUsers, getReadyUsers, getApprovedUsers, + employersVerify, deleteUser, deleteSelectedUsers, getUserById, diff --git a/src/app/modules/process/user-ready/edit-loan-modal/UserEditModalForm.tsx b/src/app/modules/process/user-ready/edit-loan-modal/UserEditModalForm.tsx index 16c3678..22e7401 100644 --- a/src/app/modules/process/user-ready/edit-loan-modal/UserEditModalForm.tsx +++ b/src/app/modules/process/user-ready/edit-loan-modal/UserEditModalForm.tsx @@ -79,7 +79,8 @@ const UserEditModalForm: FC = ({ user, isUserLoading }) => { > {/* begin::Scroll */}
= ({ user, isUserLoading }) => {