change price: echo (Not completed yet, but)
This commit is contained in:
@@ -52,3 +52,9 @@ export const useGetComments = () => {
|
||||
queryFn: api.getComments,
|
||||
});
|
||||
};
|
||||
|
||||
export const useChangeEmail = () => {
|
||||
return useMutation({
|
||||
mutationFn: (email: string) => api.changeEmail(email),
|
||||
});
|
||||
};
|
||||
|
||||
@@ -43,3 +43,8 @@ export const getComments = async (): Promise<CommentsResponse> => {
|
||||
const { data } = await axios.get("/user/profile/comments");
|
||||
return data;
|
||||
};
|
||||
|
||||
export const changeEmail = async (email: string) => {
|
||||
const { data } = await axios.post("/user/profile/email/change", { email });
|
||||
return data;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user