feat: add navigation to forger password page, show password icon, toasts for different situations and changes of some styles
This commit is contained in:
@@ -141,12 +141,8 @@ export function PhoneNumber() {
|
||||
},
|
||||
]);
|
||||
setIsEditing(false);
|
||||
toast({
|
||||
message: t('settingForm.phoneChangedSuccessfully'),
|
||||
severity: 'success',
|
||||
});
|
||||
}
|
||||
}, [changePhoneData, countryCode, phoneNumber, t, toast]);
|
||||
}, [changePhoneData, countryCode, phoneNumber, t]);
|
||||
|
||||
useEffect(() => {
|
||||
if (changePhoneError) {
|
||||
@@ -203,10 +199,10 @@ export function PhoneNumber() {
|
||||
});
|
||||
};
|
||||
|
||||
const handleSendCode = () => {
|
||||
const handleSendCode = async () => {
|
||||
handleBlur();
|
||||
if (formError || !isPhoneValid(countryCode, phoneNumber)) return;
|
||||
executeSendCode({
|
||||
return executeSendCode({
|
||||
phoneNumber: countryCode + phoneNumber.replace(/^0/, ''),
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user