wholesale request

This commit is contained in:
hamid zarghami
2025-10-11 14:40:24 +03:30
parent 3fb0a15f3d
commit ec4fe28289
8 changed files with 278 additions and 4 deletions
+13
View File
@@ -19,3 +19,16 @@ export const useApproveContract = () => {
mutationFn: api.approveContract,
});
};
export const useGetWholesaleRequests = (page: number = 1) => {
return useQuery({
queryKey: ["wholesale-requests", page],
queryFn: () => api.getWholesaleRequests(page),
});
};
export const useApproveWholesaleRequest = () => {
return useMutation({
mutationFn: api.approveWholesaleRequest,
});
};