Journal members: add a notice for no members.
parent
57f1aadc0d
commit
d09b2f964a
|
@ -38,13 +38,17 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
|
|||
<AppBarOverride title={`${info.displayName} - Members`} />
|
||||
<Container style={{maxWidth: 400}}>
|
||||
{ members ?
|
||||
<List>
|
||||
{ members.map((member) => (
|
||||
<ListItem key={member.user} onClick={undefined}>
|
||||
{member.user}
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
(members.length > 0 ?
|
||||
<List>
|
||||
{ members.map((member) => (
|
||||
<ListItem key={member.user} onClick={undefined}>
|
||||
{member.user}
|
||||
</ListItem>
|
||||
))}
|
||||
</List>
|
||||
:
|
||||
<div>No members</div>
|
||||
)
|
||||
:
|
||||
<LoadingIndicator />
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue