withdraw request
This commit is contained in:
@@ -32,3 +32,10 @@ export const useApproveWholesaleRequest = () => {
|
||||
mutationFn: api.approveWholesaleRequest,
|
||||
});
|
||||
};
|
||||
|
||||
export const useGetWithdrawalRequests = (page: number = 1) => {
|
||||
return useQuery({
|
||||
queryKey: ["withdrawal-requests", page],
|
||||
queryFn: () => api.getWithdrawalRequests(page),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user