diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 8dd6e96..f9cd873 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -92,7 +92,7 @@ const Input: FC = (props: Props) => { { 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' && diff --git a/src/langs/fa.json b/src/langs/fa.json index cb41e95..8878513 100644 --- a/src/langs/fa.json +++ b/src/langs/fa.json @@ -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": "این فیلد اجباری می باشد", diff --git a/src/pages/auth/components/LoginStep1.tsx b/src/pages/auth/components/LoginStep1.tsx index 8303a11..31520ae 100644 --- a/src/pages/auth/components/LoginStep1.tsx +++ b/src/pages/auth/components/LoginStep1.tsx @@ -62,8 +62,9 @@ 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}