aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/App.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/App.js')
-rw-r--r--vnext/src/App.js49
1 files changed, 29 insertions, 20 deletions
diff --git a/vnext/src/App.js b/vnext/src/App.js
index e59fdb40..fe91be10 100644
--- a/vnext/src/App.js
+++ b/vnext/src/App.js
@@ -106,7 +106,13 @@ export default class App extends React.Component {
<>
<Header>
<div id="header_wrapper">
- <NavigationIcon onToggle={this.toggleSidebar} />
+ {
+ user.uid > 0 ?
+ <NavigationIcon onToggle={this.toggleSidebar} />
+ : <div id="logo">
+ <Link to="/">Juick</Link>
+ </div>
+ }
<div id="logo" className="desktop"><Link to="/">Juick</Link></div>
<div id="search" className="desktop">
<SearchBox pathname="/discover" onSearch={this.search} {...this.props} />
@@ -162,25 +168,28 @@ export default class App extends React.Component {
<Route exact path="/:user/:mid" render={(props) => <Thread ref={this.thread} visitor={user} {...props} />} />
</Switch>
</section>
- <aside id="sidebar" ref={this.sidebar}>
- <Avatar user={user} />
- <Link to="/?show=my">
- <Icon name="ei-clock" size="s" />
- <span className="desktop">My feed</span>
- </Link>
- <Link to="/pm">
- <Icon name="ei-envelope" size="s" />
- <span className="desktop">Messages</span>
- </Link>
- <Link to="/?show=discuss">
- <Icon name="ei-bell" size="s" />
- <span className="desktop">Discussions</span>
- </Link>
- <Link to="/settings" rel="nofollow">
- <Icon name="ei-gear" size="s" />
- <span className="desktop">Settings</span>
- </Link>
- </aside>
+ {
+ user.uid > 0 &&
+ <aside id="sidebar" ref={this.sidebar}>
+ <Avatar user={user} />
+ <Link to="/?show=my">
+ <Icon name="ei-clock" size="s" />
+ <span className="desktop">My feed</span>
+ </Link>
+ <Link to="/pm">
+ <Icon name="ei-envelope" size="s" />
+ <span className="desktop">Messages</span>
+ </Link>
+ <Link to="/?show=discuss">
+ <Icon name="ei-bell" size="s" />
+ <span className="desktop">Discussions</span>
+ </Link>
+ <Link to="/settings" rel="nofollow">
+ <Icon name="ei-gear" size="s" />
+ <span className="desktop">Settings</span>
+ </Link>
+ </aside>
+ }
</>
</Router>
);