From 989bf53ffadf1314a9dd9aaf548b115fb8e339c2 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 5 Feb 2016 22:54:38 +0100 Subject: Move the dashboard button in the user's menu. --- src/web/js/components/Navbar.react.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/web/js/components/Navbar.react.js b/src/web/js/components/Navbar.react.js index 57c38900..08716977 100644 --- a/src/web/js/components/Navbar.react.js +++ b/src/web/js/components/Navbar.react.js @@ -24,14 +24,11 @@ JarrNavBar = React.createClass({ ); } }, - buttonAdmin: function() { + sectionAdmin: function() { if(this.state.is_admin) { - return (} - id='admin-dropdown'> - - Dashboard - - ); + return ( + Dashboard + ); } }, getModal: function() { @@ -102,7 +99,6 @@ JarrNavBar = React.createClass({ All - {this.buttonAdmin()} } id="user-dropdown"> @@ -114,6 +110,7 @@ JarrNavBar = React.createClass({ About + {this.sectionAdmin()} Logout -- cgit