From ddf433a5c96be4c40e6517bb0d06297edce4dfe6 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 29 Mar 2023 20:42:57 -0500 Subject: [PATCH] FormGroup: move hintText above input --- app/soapbox/components/ui/form-group/form-group.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/soapbox/components/ui/form-group/form-group.tsx b/app/soapbox/components/ui/form-group/form-group.tsx index e3c897a6f..7efb60ade 100644 --- a/app/soapbox/components/ui/form-group/form-group.tsx +++ b/app/soapbox/components/ui/form-group/form-group.tsx @@ -86,6 +86,12 @@ const FormGroup: React.FC = (props) => { )}
+ {hintText && ( +

+ {hintText} +

+ )} + {firstChild} {inputChildren.filter((_, i) => i !== 0)} @@ -97,12 +103,6 @@ const FormGroup: React.FC = (props) => { {errors.join(', ')}

)} - - {hintText && ( -

- {hintText} -

- )}
);