Skip to content

Commit

Permalink
Merge branch 'feat/new-user-panel-pending' into feat/new-user-panel-a…
Browse files Browse the repository at this point in the history
…ctive
  • Loading branch information
rique223 committed Mar 22, 2024
2 parents 0da75c1 + 05544d4 commit d94ad36
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ const useFilteredUsers = ({ searchTerm, prevSearchTerm, sortData, paginationData
}, [current, itemsPerPage, prevSearchTerm, searchTerm, selectedRoles, setCurrent, sortBy, sortDirection, tab]);

const getUsers = useEndpoint('GET', '/v1/users.listByStatus');

const dispatchToastMessage = useToastMessageDispatch();

const usersListQueryResult = useQuery(['users.list', payload, tab], async () => getUsers(payload), {
onError: (error) => {
dispatchToastMessage({ type: 'error', message: error });
},
});

return usersListQueryResult;
};

export default useFilteredUsers;

0 comments on commit d94ad36

Please sign in to comment.