Browse Source

admin page

Marina Yakovenko 5 years ago
parent
commit
5b674ff5bd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/sidebar/Sidebar.js

+ 2 - 2
src/components/sidebar/Sidebar.js

@@ -57,7 +57,7 @@ export class Sidebar extends React.Component {
                     </div>
                     </div>
                     <ul>
                     <ul>
 						{
 						{
-                            role && <li><Link to="/profile">Profile</Link></li>
+                            role === 'user' && <li><Link to="/profile">Profile</Link></li>
 						}
 						}
 						
 						
                         {
                         {
@@ -71,7 +71,7 @@ export class Sidebar extends React.Component {
                             !role && <li><Link to="/login">Login</Link></li>
                             !role && <li><Link to="/login">Login</Link></li>
 						}
 						}
                         {
                         {
-                            role && <li>
+                            role === 'user' && <li>
                                 <button className="logout" onClick={this.logoutHandler}>
                                 <button className="logout" onClick={this.logoutHandler}>
                                     <i className="fa fa-sign-out"></i>
                                     <i className="fa fa-sign-out"></i>
                                 </button>
                                 </button>