diff --git a/src/components/Admin/User/AdminUserTable/AdminUserTable.js b/src/components/Admin/User/AdminUserTable/AdminUserTable.js index fc7b58aa..2a83e2e7 100644 --- a/src/components/Admin/User/AdminUserTable/AdminUserTable.js +++ b/src/components/Admin/User/AdminUserTable/AdminUserTable.js @@ -131,7 +131,7 @@ const AdminUserTable = ({ {user.affiliation} - Role + Type diff --git a/src/components/AnnotationChannel/AnnotationChannel.js b/src/components/AnnotationChannel/AnnotationChannel.js index d67bc394..fe499bef 100644 --- a/src/components/AnnotationChannel/AnnotationChannel.js +++ b/src/components/AnnotationChannel/AnnotationChannel.js @@ -82,6 +82,8 @@ const AnnotationChannelWithContext = ({ largeFontSize, setLargeFontSize, }) => { + + console.log('membersIntersection: ', membersIntersection) const [, documentZoom] = useContext(DocumentContext); const [channelAnnotations, , expandedAnnotations] = useContext(DocumentAnnotationsContext); const [documentFilters] = useContext(DocumentFiltersContext); diff --git a/src/pages/groups/index.jsx b/src/pages/groups/index.jsx index fe534501..0db969ea 100644 --- a/src/pages/groups/index.jsx +++ b/src/pages/groups/index.jsx @@ -256,146 +256,3 @@ export async function getServerSideProps(context) { } export default GroupList; - - -/* - - {((!session && loading) || (session && pageLoading)) && ( - - )} - {!session && !loading && ( - - )} - {session && !loading && !pageLoading && ( - <> - - - Groups - - - - - {groups.length === 0 && ( - <>You are not a member of any groups. - )} - {groups.length > 0 && ( - <> - - - - - - - - - - - - {groups.map((group) => ( - - - - - - - - ))} - -
NameRoleOwnerMembersActions
- - {group.name} - - {FirstNameLastInitial(group.ownerName)}{group.memberCount} - - {(group.role === 'owner' || group.role === 'manager') && ( - - )} - {(group.role === 'member' || group.role === 'manager') && ( - - )} - {group.role === 'owner' && ( - <> - - { - setPageLoading(true); - event.target.setAttribute('disabled', 'true'); - deleteGroupById(group.id).then(() => { - setGroups(groups.filter((g) => g.id !== group.id)); - setAlerts((prevState) => [...prevState, { - text: 'You have successfully deleted the group.', - variant: 'warning', - }]); - setPageLoading(false); - }).catch((err) => { - setAlerts((prevState) => [...prevState, { text: err.message, variant: 'danger' }]); - setPageLoading(false); - }); - handleCloseModal(); - }} - /> - - )} - -
- - - )} -
- - )} -
- -*/