import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import { hashHistory } from 'react-router'; import { loggedUser, visitReporter, } from 'utils/authorization'; const ImgIconButtonStyle = { width: '60px', height: '60px' }; const listItemStyle = { paddingLeft: '50px' // 36 + 16, algin with sub list }; class NavRightList extends React.Component { constructor(props) { super(props); this.props = props; this.state = { name: '', useruuid: '' } this.handleChange = this.handleChange.bind(this); } handleChange = (event, value) => { hashHistory.push(value); } componentDidMount() { const user = JSON.parse(localStorage.getItem('loggedUser')); if (user) { this.setState(Object.assign(this.state, user)); } } render() { return (
}
onChange={this.handleChange}
anchorOrigin={{ horizontal: 'right', vertical: 'bottom' }}
targetOrigin={{ horizontal: 'right', vertical: 'top' }}
menuStyle={{ minWidth: '150px' }}
>
{!loggedUser.anyOf(visitReporter) &&