restaurant list + fix build

This commit is contained in:
hamid zarghami
2025-12-29 14:49:55 +03:30
parent fe07425d7e
commit 8bdd838ddc
12 changed files with 205 additions and 7 deletions
+7
View File
@@ -46,3 +46,10 @@ export const useGetReports = () => {
queryFn: api.getReports,
});
};
export const useGetRestaurants = () => {
return useQuery({
queryKey: ["restaurants"],
queryFn: api.getRestaurants,
});
};