From 62b21dbfe12fde5cfd8bd4ab9fdc5fa6866bd45e Mon Sep 17 00:00:00 2001 From: jenny-s51 Date: Thu, 15 Apr 2021 15:46:47 -0400 Subject: [PATCH] add functionality to select and add multiple groups --- src/user/UserGroups.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/user/UserGroups.tsx b/src/user/UserGroups.tsx index c9d214f102..ce353e47d5 100644 --- a/src/user/UserGroups.tsx +++ b/src/user/UserGroups.tsx @@ -32,7 +32,7 @@ export type UserFormProps = { max?: number, search?: string ) => Promise; - addGroups?: (newReps: GroupRepresentation[]) => void; + addGroup?: (newGroup: GroupRepresentation) => void; }; export const UserGroups = () => { @@ -48,17 +48,12 @@ export const UserGroups = () => { const [search, setSearch] = useState(""); const [username, setUsername] = useState(""); - const [join, setJoin] = useState(); - - const lastId = getLastId(location.pathname); - const [isDirectMembership, setDirectMembership] = useState(true); const [directMembershipList, setDirectMembershipList] = useState< GroupRepresentation[] >([]); const [open, setOpen] = useState(false); - const [move, setMove] = useState(); const adminClient = useAdminClient(); const { id } = useParams<{ id: string }>(); @@ -210,15 +205,6 @@ export const UserGroups = () => { const toggleModal = () => { setOpen(!open); }; - const JoinGroupButtonRenderer = (group: GroupRepresentation) => { - return ( - <> - - - ); - }; const joinGroup = (group: GroupRepresentation) => { setSelectedGroup(group);