Merge branch 'develop' into fix/enter

This commit is contained in:
SajadMRjl
2025-09-14 11:59:01 +03:30
committed by GitHub
3 changed files with 18 additions and 2 deletions

View File

@@ -67,6 +67,15 @@ export const CompleteSignUp = ({
} }
}; };
const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {
let newValue = e.target.value;
if (newValue.startsWith('09')) {
newValue = newValue.substring(1);
}
setValue(newValue);
};
return ( return (
<AuthenticationCard> <AuthenticationCard>
<Box <Box

View File

@@ -53,7 +53,11 @@ export function LoginRegisterForm({
); );
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => { const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const newValue = event.target.value; let newValue = event.target.value;
if (newValue.startsWith('09')) {
newValue = newValue.substring(1);
}
setLoginRegisterValue(newValue); setLoginRegisterValue(newValue);
// If the new value contains only digits (or is empty), it's a phone number // If the new value contains only digits (or is empty), it's a phone number

View File

@@ -45,7 +45,10 @@ export function ForgettedPasswordInfo({
} = useApi(sendForgetPassCode); } = useApi(sendForgetPassCode);
const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => { const handleInputChange = (event: React.ChangeEvent<HTMLInputElement>) => {
const newValue = event.target.value; let newValue = event.target.value;
if (newValue.startsWith('09')) {
newValue = newValue.substring(1);
}
setForgettedPasswordInfo(newValue); setForgettedPasswordInfo(newValue);
// If the new value contains only digits (or is empty), it's a phone number // If the new value contains only digits (or is empty), it's a phone number