@@ -92,7 +92,7 @@ const Input: FC<Props> = (props: Props) => {
|
||||
<input {...props} onChange={(e) => {
|
||||
setSearch(e.target.value)
|
||||
handleInputChange(e)
|
||||
}} value={props.seprator ? formattedValue : props.value} type={props.type === 'password' && showPassword ? 'text' : props.type === 'password' ? 'password' : undefined} className={inputClass} />
|
||||
}} value={props.seprator ? formattedValue : props.value} type={props.type === 'password' ? (showPassword ? 'text' : 'password') : props.type} className={inputClass} />
|
||||
|
||||
{
|
||||
props.type === 'password' &&
|
||||
|
||||
+2
-2
@@ -24,7 +24,7 @@
|
||||
"mobile_or_email": " شماره موبایل یا ایمیل",
|
||||
"enter_mobile_or_email": " شماره موبایل یا ایمیل خود را وارد کنید",
|
||||
"mobile": "شماره موبایل",
|
||||
"enter_mobile": "شماره موبایل خود را وارد کنید",
|
||||
"enter_mobile": "09120000000",
|
||||
"otp_sent": "کد تایید ارسال شد",
|
||||
"have_account": "آیا حساب کاربری ندارید؟",
|
||||
"register": "ثبت نام",
|
||||
@@ -40,7 +40,7 @@
|
||||
"forgot_password": "فراموشی رمز عبور",
|
||||
"login_with_otp": "ورود با رمز عبور یکبار مصرف",
|
||||
"slug": "نام کاربری",
|
||||
"enter_slug": "نام کاربری خود را وارد کنید"
|
||||
"enter_slug": ""
|
||||
},
|
||||
"errors": {
|
||||
"required": "این فیلد اجباری می باشد",
|
||||
|
||||
@@ -62,8 +62,9 @@ const LoginStep1: FC = () => {
|
||||
<Input
|
||||
label={t('auth.mobile')}
|
||||
placeholder={t('auth.enter_mobile')}
|
||||
type='text'
|
||||
className='text-right'
|
||||
type='tel'
|
||||
dir='ltr'
|
||||
className='text-left dltr'
|
||||
name='phone'
|
||||
onChange={formik.handleChange}
|
||||
value={formik.values.phone}
|
||||
@@ -83,7 +84,8 @@ const LoginStep1: FC = () => {
|
||||
label={t('auth.slug')}
|
||||
placeholder={t('auth.enter_slug')}
|
||||
type='text'
|
||||
className='text-right'
|
||||
dir='ltr'
|
||||
className='text-left dltr'
|
||||
name='slug'
|
||||
onChange={formik.handleChange}
|
||||
value={formik.values.slug}
|
||||
|
||||
Reference in New Issue
Block a user