Journal members: add a notice for no members.

master
Tom Hacohen 2019-02-14 08:54:23 +00:00
parent 57f1aadc0d
commit d09b2f964a
1 changed files with 11 additions and 7 deletions

View File

@ -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 />
}