Tanya Sashyna 5 rokov pred
rodič
commit
ee87d7ed2a
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  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>
                     <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>
+                            role === 'user' && <li>
                                 <button className="logout" onClick={this.logoutHandler}>
                                     <i className="fa fa-sign-out"></i>
                                 </button>