change some files
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user