Refactor Slack signin codE

This commit is contained in:
Tom Moor
2017-09-03 17:08:56 -07:00
parent bdb7c46874
commit 432b7afede
3 changed files with 48 additions and 51 deletions

View File

@ -107,7 +107,7 @@ type Props = {
render() {
const { auth, documents, collections, history, ui } = this.props;
const { user } = auth;
const { user, team } = auth;
return (
<Container column auto>
@ -128,10 +128,12 @@ type Props = {
<Flex auto>
{auth.authenticated &&
user &&
team &&
<Sidebar column editMode={ui.editMode}>
<Header justify="space-between">
<Flex align="center">
<LogoLink to="/">Atlas</LogoLink>
<LogoLink to="/">{team.name}</LogoLink>
{user.username}
</Flex>
<DropdownMenu label={<Avatar src={user.avatarUrl} />}>
<DropdownMenuItem onClick={this.handleOpenSettings}>