Only show layout user menu if logged in
This commit is contained in:
@ -75,6 +75,8 @@ class Layout extends React.Component {
|
||||
</span>
|
||||
</div>
|
||||
<Flex className={ styles.headerRight }>
|
||||
{ user.user && (
|
||||
<Flex>
|
||||
<Flex align="center" className={ styles.actions }>
|
||||
{ this.props.actions }
|
||||
</Flex>
|
||||
@ -100,6 +102,8 @@ class Layout extends React.Component {
|
||||
<MenuItem onClick={ user.logout }>Logout</MenuItem>
|
||||
</DropdownMenu>
|
||||
</Flex>
|
||||
) }
|
||||
</Flex>
|
||||
</div>
|
||||
|
||||
<div
|
||||
|
Reference in New Issue
Block a user