This commit is contained in:
2026-05-31 18:00:43 +03:30
parent 98af7d639b
commit b241d12ff5
20 changed files with 939 additions and 797 deletions

8
hooks/center.hook.ts Normal file
View 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
View File

@@ -0,0 +1,7 @@
import { sendIdentityForm } from "@/services/apis/identity.api";
import { useMutation } from "@tanstack/react-query";
export const useSendIdentityForm = () =>
useMutation({
mutationFn: sendIdentityForm,
});