feat: add navigation to forger password page, show password icon, toasts for different situations and changes of some styles

This commit is contained in:
Koosha Lahouti
2025-08-20 01:00:20 +03:30
parent 58c044542a
commit 8ed4aab666
23 changed files with 503 additions and 376 deletions

View File

@@ -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/, ''),
});
};