hold action mobile + najva token updated
This commit is contained in:
@@ -43,4 +43,10 @@ export const useSingleUpload = () => {
|
||||
return useMutation({
|
||||
mutationFn: (variables: FormData) => api.singleUpload(variables),
|
||||
});
|
||||
};
|
||||
|
||||
export const useUpdatePushToken = () => {
|
||||
return useMutation({
|
||||
mutationFn: (variables: UpdateProfileType) => api.updatePushToken(variables),
|
||||
});
|
||||
};
|
||||
@@ -22,6 +22,11 @@ export const updateProfile = async (params: UpdateProfileType) => {
|
||||
return data;
|
||||
};
|
||||
|
||||
export const updatePushToken = async (params: UpdateProfileType) => {
|
||||
const { data } = await axios.post(`/users/push-token`, params);
|
||||
return data;
|
||||
};
|
||||
|
||||
export const updateEmail = async (params: UpdateEmailType) => {
|
||||
const { data } = await axios.patch(`/users/change-email`, params);
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user