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 /> );