diff --git a/src/user/UserGroups.tsx b/src/user/UserGroups.tsx index ce353e47d5..c9d214f102 100644 --- a/src/user/UserGroups.tsx +++ b/src/user/UserGroups.tsx @@ -32,7 +32,7 @@ export type UserFormProps = { max?: number, search?: string ) => Promise; - addGroup?: (newGroup: GroupRepresentation) => void; + addGroups?: (newReps: GroupRepresentation[]) => void; }; export const UserGroups = () => { @@ -48,12 +48,17 @@ 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 }>(); @@ -205,6 +210,15 @@ export const UserGroups = () => { const toggleModal = () => { setOpen(!open); }; + const JoinGroupButtonRenderer = (group: GroupRepresentation) => { + return ( + <> + + + ); + }; const joinGroup = (group: GroupRepresentation) => { setSelectedGroup(group);