change some files

This commit is contained in:
2026-06-02 17:08:52 +03:30
parent b8dc1d0e1b
commit cfb48c5bb0
76 changed files with 5204 additions and 2555 deletions

View File

@@ -1,8 +1,10 @@
import { getAllCenters } from "@/services/apis/center.api";
import { useQuery } from "@tanstack/react-query";
import { getAllCenters, selectCenter } from "@/services/apis/center.api";
import { useMutation, useQuery } from "@tanstack/react-query";
export const useGetAllCenters = () =>
useQuery({
queryKey: ["get-all-centers"],
queryFn: getAllCenters,
});
export const useGetAllCenters = () => useQuery({
queryKey:["get-all-centers"],
queryFn:getAllCenters
})
export const useSelectCenter = () => useMutation({ mutationFn: selectCenter });