Only show layout user menu if logged in

This commit is contained in:
Jori Lallo
2016-08-28 10:59:47 -07:00
parent 4ba98c9dcf
commit c1895c3a65

View File

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