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