withdraw request

This commit is contained in:
hamid zarghami
2025-10-11 15:13:39 +03:30
parent ec4fe28289
commit c11c331fb9
9 changed files with 426 additions and 3 deletions
+7
View File
@@ -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),
});
};