diff --git a/h/static/scripts/group-forms/components/CreateGroupForm.tsx b/h/static/scripts/group-forms/components/CreateGroupForm.tsx index 6a871f4850e..a9358cddd41 100644 --- a/h/static/scripts/group-forms/components/CreateGroupForm.tsx +++ b/h/static/scripts/group-forms/components/CreateGroupForm.tsx @@ -2,6 +2,36 @@ import { useId } from 'preact/hooks'; import { Button, Input, Textarea } from '@hypothesis/frontend-shared'; +function Star() { + return *; +} + +function CharacterCounter({ value, limit }: { value: number; limit: number }) { + return ( +
+
+ {value}/{limit} +
+ ); +} + +function Label({ + htmlFor, + text, + required, +}: { + htmlFor: string; + text: string; + required?: boolean; +}) { + return ( + + ); +} + export default function CreateGroupForm() { const nameId = useId(); const descriptionId = useId(); @@ -41,33 +71,3 @@ export default function CreateGroupForm() {
); } - -function CharacterCounter({ value, limit }: { value: number; limit: number }) { - return ( -
-
- {value}/{limit} -
- ); -} - -function Label({ - htmlFor, - text, - required, -}: { - htmlFor: string; - text: string; - required?: boolean; -}) { - return ( - - ); -} - -function Star() { - return *; -}