diff options
author | Dessalines <tyhou13@gmx.com> | 2019-04-11 07:15:22 -0700 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2019-04-11 07:15:22 -0700 |
commit | 8590a612f633fe6ba8f8b18379a8a822a3b3019b (patch) | |
tree | ad26932977c587ad9dcf982f9036eaf014b657f7 /ui/src/components/navbar.tsx | |
parent | a05453ab78ae1fbf5da26c2dddb8397c1fc9dffb (diff) | |
parent | bdcc026d11d44bbb3b553cb99f6c4bc7a44daa6c (diff) |
Merge branch 'dev' into moderation
Diffstat (limited to 'ui/src/components/navbar.tsx')
-rw-r--r-- | ui/src/components/navbar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/src/components/navbar.tsx b/ui/src/components/navbar.tsx index ca0c5a2a..5c51b699 100644 --- a/ui/src/components/navbar.tsx +++ b/ui/src/components/navbar.tsx @@ -25,7 +25,7 @@ export class Navbar extends Component<any, NavbarState> { // Subscribe to user changes UserService.Instance.sub.subscribe(user => { - let loggedIn: boolean = user !== null; + let loggedIn: boolean = user !== undefined; this.setState({isLoggedIn: loggedIn}); }); } @@ -40,7 +40,7 @@ export class Navbar extends Component<any, NavbarState> { // TODO toggle css collapse navbar() { return ( - <nav class="navbar navbar-expand-sm navbar-light bg-light p-0 px-3 shadow"> + <nav class="container navbar navbar-expand-md navbar-light navbar-bg p-0 px-3"> <a title={version} class="navbar-brand" href="#"> <svg class="icon mr-2"><use xlinkHref="#icon-mouse"></use></svg> Lemmy @@ -74,7 +74,7 @@ export class Navbar extends Component<any, NavbarState> { <a role="button" class="dropdown-item pointer" onClick={ linkEvent(this, this.handleLogoutClick) }>Logout</a> </div> </li> : - <Link class="nav-link" to="/login">Login</Link> + <Link class="nav-link" to="/login">Login / Sign up</Link> } </ul> </div> |