request list

This commit is contained in:
hamid zarghami
2026-02-03 15:45:48 +03:30
parent fe99e802bc
commit 8e842d1837
3 changed files with 56 additions and 24 deletions
+7
View File
@@ -9,6 +9,13 @@ export const useGetOrders = () => {
});
};
export const useGetRequests = () => {
return useQuery({
queryKey: ["requests"],
queryFn: api.getRequests,
});
};
export const useGetOrderDetails = (id: string) => {
return useQuery({
queryKey: ["order", id],