Journal members: add a notice for no members.

master
Tom Hacohen 6 years ago
parent 57f1aadc0d
commit d09b2f964a

@ -38,6 +38,7 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
<AppBarOverride title={`${info.displayName} - Members`} /> <AppBarOverride title={`${info.displayName} - Members`} />
<Container style={{maxWidth: 400}}> <Container style={{maxWidth: 400}}>
{ members ? { members ?
(members.length > 0 ?
<List> <List>
{ members.map((member) => ( { members.map((member) => (
<ListItem key={member.user} onClick={undefined}> <ListItem key={member.user} onClick={undefined}>
@ -46,6 +47,9 @@ class JournalMembers extends React.PureComponent<PropsTypeInner> {
))} ))}
</List> </List>
: :
<div>No members</div>
)
:
<LoadingIndicator /> <LoadingIndicator />
} }
</Container> </Container>

Loading…
Cancel
Save