From fdd7dcc0abb980c5ea8162744748381886595d5c Mon Sep 17 00:00:00 2001 From: Pico2x Date: Tue, 20 Sep 2022 14:42:41 +0100 Subject: [PATCH] Rm group about/short description --- web/components/groups/edit-group-button.tsx | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/web/components/groups/edit-group-button.tsx b/web/components/groups/edit-group-button.tsx index 6349ad3f..bc8af2ac 100644 --- a/web/components/groups/edit-group-button.tsx +++ b/web/components/groups/edit-group-button.tsx @@ -16,7 +16,6 @@ export function EditGroupButton(props: { group: Group; className?: string }) { const router = useRouter() const [name, setName] = useState(group.name) - const [about, setAbout] = useState(group.about ?? '') const [open, setOpen] = useState(false) const [isSubmitting, setIsSubmitting] = useState(false) const [addMemberUsers, setAddMemberUsers] = useState([]) @@ -26,8 +25,7 @@ export function EditGroupButton(props: { group: Group; className?: string }) { setOpen(newOpen) } - const saveDisabled = - name === group.name && about === group.about && addMemberUsers.length === 0 + const saveDisabled = name === group.name && addMemberUsers.length === 0 const onSubmit = async () => { setIsSubmitting(true) @@ -66,23 +64,6 @@ export function EditGroupButton(props: { group: Group; className?: string }) { -
- - - setAbout(e.target.value || '')} - /> -
- - -