create section

This commit is contained in:
hamid zarghami
2026-02-02 09:33:19 +03:30
parent 6383cbb975
commit c3cb697fae
8 changed files with 100 additions and 6 deletions
+7 -1
View File
@@ -1,4 +1,4 @@
import { useQuery } from "@tanstack/react-query";
import { useMutation, useQuery } from "@tanstack/react-query";
import * as api from "../service/PrintService";
export const useGetSections = () => {
@@ -7,3 +7,9 @@ export const useGetSections = () => {
queryFn: api.getSections,
});
};
export const useCreateSection = () => {
return useMutation({
mutationFn: api.createSection,
});
};