perfoma invoice

This commit is contained in:
hamid zarghami
2026-02-16 10:42:04 +03:30
parent 3ea39c9efe
commit 593d771f71
4 changed files with 140 additions and 46 deletions
+7
View File
@@ -9,6 +9,13 @@ export const useGetOrders = () => {
});
};
export const useGetOrdersInvoiced = (page: number = 1) => {
return useQuery({
queryKey: ["orders-invoiced", page],
queryFn: () => api.getOrdersInvoiced(page),
});
};
export const useGetRequests = () => {
return useQuery({
queryKey: ["requests"],