From f555ecc40d67eab282a467ea3eed7d15e04d4d68 Mon Sep 17 00:00:00 2001 From: "Anna (Anya) Parker" <50943381+anna-parker@users.noreply.github.com> Date: Mon, 29 Jul 2024 13:09:31 +0200 Subject: [PATCH] Remove tooltip --- .../src/components/User/GroupCreationForm.tsx | 23 ++----------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/website/src/components/User/GroupCreationForm.tsx b/website/src/components/User/GroupCreationForm.tsx index a2f982ba1..72c660386 100644 --- a/website/src/components/User/GroupCreationForm.tsx +++ b/website/src/components/User/GroupCreationForm.tsx @@ -150,17 +150,9 @@ type LabelledInputContainerProps = PropsWithChildren<{ htmlFor: string; className: string; required?: boolean; - showInstitutionInfo?: boolean; }>; -const LabelledInputContainer: FC = ({ - children, - label, - htmlFor, - className, - required, - showInstitutionInfo, -}) => { +const LabelledInputContainer: FC = ({ children, label, htmlFor, className, required }) => { return (
@@ -168,14 +160,6 @@ const LabelledInputContainer: FC = ({ {label} {required === true && *} - {showInstitutionInfo !== undefined && showInstitutionInfo && ( - - )}
{children}
@@ -188,16 +172,14 @@ type TextInputProps = { name: string; fieldMappingKey: keyof typeof fieldMapping; type: ComponentProps<'input'>['type']; - showInstitutionInfo?: boolean; }; -const TextInput: FC = ({ className, label, name, fieldMappingKey, type, showInstitutionInfo }) => ( +const TextInput: FC = ({ className, label, name, fieldMappingKey, type }) => ( ( label='Institution' name='institution-name' fieldMappingKey='institution' - showInstitutionInfo /> );