diff --git a/.env b/.env index 60a7ffc..a853243 100644 --- a/.env +++ b/.env @@ -1,4 +1,4 @@ VITE_TOKEN_NAME = 'negareh_t' VITE_REFRESH_TOKEN_NAME = 'negareh_rt' -VITE_API_BASE_URL = 'https://negare-api.danakcorp.com' -# VITE_API_BASE_URL = 'http://localhost:4000' +# VITE_API_BASE_URL = 'https://negare-api.danakcorp.com' +VITE_API_BASE_URL = 'http://localhost:4000' diff --git a/src/components/Input.tsx b/src/components/Input.tsx index 6d0d353..201fd6d 100644 --- a/src/components/Input.tsx +++ b/src/components/Input.tsx @@ -88,7 +88,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/pages/auth/components/LoginStep1.tsx b/src/pages/auth/components/LoginStep1.tsx index f4db8b7..04a6661 100644 --- a/src/pages/auth/components/LoginStep1.tsx +++ b/src/pages/auth/components/LoginStep1.tsx @@ -54,7 +54,9 @@ const LoginStep1: FC = () => { label={'شماره موبایل'} placeholder={'شماره موبایل خود را وارد کنید'} type='tel' - className='text-right' + autoComplete='tel' + inputMode='tel' + className='dltr text-left' name='phone_email' onChange={formik.handleChange} value={formik.values.phone_email}