added autoComplete on signin component input's and fixed translations on submit buttons
This commit is contained in:
@@ -58,6 +58,7 @@ const LoginForm = ({ onSubmit }: SigninFormProps) => {
|
||||
isRequired
|
||||
type="text"
|
||||
placeholder="Username"
|
||||
autoComplete="username"
|
||||
value={formData.username.value}
|
||||
onChangeText={(t) => {
|
||||
let error: null | string = null;
|
||||
@@ -80,7 +81,7 @@ const LoginForm = ({ onSubmit }: SigninFormProps) => {
|
||||
<Input
|
||||
isRequired
|
||||
type="password"
|
||||
placeholder="password"
|
||||
autoComplete="password"
|
||||
value={formData.password.value}
|
||||
onChangeText={(t) => {
|
||||
let error: null | string = null;
|
||||
@@ -97,7 +98,7 @@ const LoginForm = ({ onSubmit }: SigninFormProps) => {
|
||||
>
|
||||
{formData.password.error}
|
||||
</FormControl.ErrorMessage>
|
||||
<TextButton translate={{ translationKey: 'login' }}
|
||||
<TextButton translate={{ translationKey: 'signInBtn' }}
|
||||
style={{ marginTop: 10 }}
|
||||
isLoading={submittingForm}
|
||||
isDisabled={
|
||||
|
||||
@@ -174,7 +174,7 @@ const LoginForm = ({ onSubmit }: SignupFormProps) => {
|
||||
>
|
||||
{formData.repeatPassword.error}
|
||||
</FormControl.ErrorMessage>
|
||||
<TextButton translate={{ translationKey: 'signUp' }}
|
||||
<TextButton translate={{ translationKey: 'signUpBtn' }}
|
||||
style={{ marginTop: 10 }}
|
||||
isLoading={submittingForm}
|
||||
isDisabled={
|
||||
|
||||
Reference in New Issue
Block a user