call back and service item skeleton

This commit is contained in:
hamid zarghami
2025-02-27 09:12:27 +03:30
parent 550d825e3a
commit e8c26de5e1
11 changed files with 164 additions and 102 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const Email: FC<Props> = (props: Props) => {
const handleShowModal = () => {
updateEmail.mutate({ email: email }, {
onSuccess: () => {
setShowModal(true)
toast.success(t('profile.link_email'))
},
onError: (error: ErrorType) => {
toast.error(error.response?.data?.error.message[0])
+2 -2
View File
@@ -23,12 +23,12 @@ export const updateProfile = async (params: UpdateProfileType) => {
};
export const updateEmail = async (params: UpdateEmailType) => {
const { data } = await axios.patch(`/users/update-email`, params);
const { data } = await axios.patch(`/users/change-email`, params);
return data;
};
export const updatePhone = async (params: UpdatePhoneType) => {
const { data } = await axios.patch(`/users/update-phone`, params);
const { data } = await axios.patch(`/users/change-phone`, params);
return data;
};