diff options
Diffstat (limited to 'client/components/Menu.jsx')
| -rw-r--r-- | client/components/Menu.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/components/Menu.jsx b/client/components/Menu.jsx index 471336e..452c395 100644 --- a/client/components/Menu.jsx +++ b/client/components/Menu.jsx @@ -39,9 +39,9 @@ export default class Menu extends React.Component { items.push( <li key='goal' onMouseDown={this.setGoal}><a href='#'>Goal</a>: {user.goal} cal</li> ) switch (currentUser.role) { case 'admin': - if (this.props.user.id !== this.props.currentUser.id) { - items.push( <li key='resetUser'><a href='#' onClick={this.resetUser}>Reset User</a></li> ) - } +// if (this.props.user.id !== this.props.currentUser.id) { +// items.push( <li key='resetUser'><a href='#' onClick={this.resetUser}>Stop viewing</a></li> ) +// } items.push( <li key='userlist'><a href='#' onClick={this.props.toggleMode}>Users</a></li> ) items.push( <li key='meallist'><a href='#' onClick={this.props.toggleMode}>Meals</a></li> ) break |
