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