This commit is contained in:
Sone
2025-12-27 19:24:48 +01:00
parent fdcc42007a
commit e6318fbedc
3 changed files with 47 additions and 31 deletions
+14 -4
View File
@@ -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}