|
@@ -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>
|