dasdasd
This commit is contained in:
8
hooks/center.hook.ts
Normal file
8
hooks/center.hook.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { getAllCenters } from "@/services/apis/center.api";
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
|
||||
|
||||
export const useGetAllCenters = () => useQuery({
|
||||
queryKey:["get-all-centers"],
|
||||
queryFn:getAllCenters
|
||||
})
|
||||
7
hooks/identity.hook.ts
Normal file
7
hooks/identity.hook.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { sendIdentityForm } from "@/services/apis/identity.api";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
|
||||
export const useSendIdentityForm = () =>
|
||||
useMutation({
|
||||
mutationFn: sendIdentityForm,
|
||||
});
|
||||
Reference in New Issue
Block a user