mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
GroupsPane: show channel length
This commit is contained in:
parent
0f62a951dc
commit
182eb5c7fe
@ -192,12 +192,15 @@ export function GroupsPane(props: GroupsPaneProps) {
|
||||
path={relativePath("")}
|
||||
render={(routeProps) => {
|
||||
const hasDescription = groupAssociation?.metadata?.description;
|
||||
const channelCount = Object.keys(props?.associations?.graph ?? {}).filter(e => {
|
||||
return props?.associations?.graph?.[e]?.['group'] === groupPath;
|
||||
}).length;
|
||||
let summary: ReactNode;
|
||||
if(groupAssociation?.group) {
|
||||
const memberCount = props.groups[groupAssociation.group].members.size;
|
||||
summary = <GroupSummary
|
||||
memberCount={memberCount}
|
||||
channelCount={0}
|
||||
channelCount={channelCount}
|
||||
metadata={groupAssociation.metadata}
|
||||
/>
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user