added new login API

This commit was merged in pull request #8.
This commit is contained in:
victorAnumudu
2024-05-02 14:00:57 +01:00
parent 3845ecbefe
commit f7f728c066
6 changed files with 42 additions and 21 deletions
@@ -13,9 +13,9 @@ const NEW_USER_ENDPOINT = import.meta.env.VITE_APP_USER_ENDPOINT
// .get(`${GET_USERS_URL}?${query}`)
// .then((d: AxiosResponse<UsersQueryResponse>) => d.data);
// };
const getStartedUsers = (query: string): Promise<UsersQueryResponse> => {
const getStartedUsers = (query: string): Promise<UsersQueryResponse> => { // FUNCTION TO GET USERS THAT HAVE STARTED LOAN APPLICATION
return axios
.get(`${NEW_USER_ENDPOINT}/loan/started?${query}`)
.get(`${NEW_USER_ENDPOINT}/loan/started`)
.then((d: AxiosResponse<UsersQueryResponse>) => d.data);
};
@@ -11,7 +11,7 @@ import {KTCardBody} from '../../../../../../_digifi/helpers'
const UsersTable = () => {
const users = useQueryResponseData()
// console.log('users', users)
console.log('users', users)
const isLoading = useQueryResponseLoading()
const data = useMemo(() => users, [users])
const columns = useMemo(() => usersColumns, [])