From 2519bb137a30d646d093a0d9a7bf2bfa63e4346d Mon Sep 17 00:00:00 2001 From: marktnoonan Date: Sun, 23 Feb 2025 14:43:58 -0500 Subject: [PATCH 1/2] move labels outside form --- src/components/SignInForm.tsx | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/components/SignInForm.tsx b/src/components/SignInForm.tsx index 95a99f4e2..bc88eabbe 100644 --- a/src/components/SignInForm.tsx +++ b/src/components/SignInForm.tsx @@ -106,6 +106,16 @@ const SignInForm: React.FC = ({ authService }) => { > {({ isValid, isSubmitting }) => (
+ {({ field, meta: { error, value, initialValue, touched } }: FieldProps) => ( = ({ authService }) => { margin="normal" fullWidth id="username" - label="Username" type="text" autoFocus data-test="signin-username" @@ -123,13 +132,22 @@ const SignInForm: React.FC = ({ authService }) => { /> )} + {({ field, meta: { error, value, initialValue, touched } }: FieldProps) => ( Date: Sun, 23 Feb 2025 15:14:08 -0500 Subject: [PATCH 2/2] fix labels in sign-up form --- src/components/SignInForm.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/SignInForm.tsx b/src/components/SignInForm.tsx index bc88eabbe..30a993e37 100644 --- a/src/components/SignInForm.tsx +++ b/src/components/SignInForm.tsx @@ -107,6 +107,7 @@ const SignInForm: React.FC = ({ authService }) => { {({ isValid, isSubmitting }) => (