update profile

This commit is contained in:
hamid zarghami
2025-12-14 11:07:03 +03:30
parent ec400802d2
commit 2ce6ec6245
4 changed files with 192 additions and 71 deletions
@@ -1,4 +1,4 @@
import { useQuery } from "@tanstack/react-query";
import { useMutation, useQuery } from "@tanstack/react-query";
import * as api from "../service/ProfileService";
import { getToken } from "@/lib/api/func";
@@ -10,3 +10,9 @@ export const useGetProfile = () => {
enabled: !!getToken(),
});
};
export const useUpdateProfile = () => {
return useMutation({
mutationFn: api.updateProfile,
});
};