init
This commit is contained in:
@@ -57,7 +57,10 @@ export const SignInForm = ({
|
||||
<Controller
|
||||
control={control}
|
||||
name="emailAddress"
|
||||
render={({ field: { onChange, onBlur, value }, fieldState: { error } }) => (
|
||||
render={({
|
||||
field: { onChange, onBlur, value },
|
||||
fieldState: { error },
|
||||
}) => (
|
||||
<>
|
||||
<FormInput
|
||||
label="Email"
|
||||
@@ -71,7 +74,9 @@ export const SignInForm = ({
|
||||
returnKeyType="next"
|
||||
/>
|
||||
{error ? (
|
||||
<Text style={{ color: "#F83434", marginTop: -4, marginBottom: 8 }}>
|
||||
<Text
|
||||
style={{ color: "#F83434", marginTop: -4, marginBottom: 8 }}
|
||||
>
|
||||
{error.message}
|
||||
</Text>
|
||||
) : null}
|
||||
@@ -82,7 +87,10 @@ export const SignInForm = ({
|
||||
<Controller
|
||||
control={control}
|
||||
name="password"
|
||||
render={({ field: { onChange, onBlur, value }, fieldState: { error } }) => (
|
||||
render={({
|
||||
field: { onChange, onBlur, value },
|
||||
fieldState: { error },
|
||||
}) => (
|
||||
<>
|
||||
<PasswordInput
|
||||
label="Password"
|
||||
@@ -95,7 +103,9 @@ export const SignInForm = ({
|
||||
onSubmitEditing={() => handleSubmit(submit)()}
|
||||
/>
|
||||
{error ? (
|
||||
<Text style={{ color: "#F83434", marginTop: -4, marginBottom: 8 }}>
|
||||
<Text
|
||||
style={{ color: "#F83434", marginTop: -4, marginBottom: 8 }}
|
||||
>
|
||||
{error.message}
|
||||
</Text>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user