зеркало из https://github.com/Azure/Sia-EventUI.git
Fix lint error in NavMenu (#68)
This commit is contained in:
Родитель
7a7d59b0e4
Коммит
01ffdb7cc1
|
@ -8,24 +8,20 @@ import NavigationMenu from 'material-ui/svg-icons/navigation/menu'
|
|||
import IconButton from 'material-ui/IconButton'
|
||||
import * as auth from 'services/authNService'
|
||||
|
||||
|
||||
|
||||
|
||||
export const NavMenu = ({ dispatch }) =>
|
||||
<IconMenu
|
||||
<IconMenu
|
||||
|
||||
iconButtonElement={<IconButton><NavigationMenu /></IconButton>}
|
||||
anchorOrigin={{horizontal: 'left', vertical: 'bottom'}}
|
||||
targetOrigin={{horizontal: 'left', vertical: 'top'}}
|
||||
>
|
||||
|
||||
<MenuItem primaryText={<Link to="/search" >Incident Search</Link>} />
|
||||
<MenuItem primaryText={<Link to="/" onClick={() => dispatch(auth.logOut)}>LogOut</Link>} />
|
||||
<MenuItem primaryText={<Link to="/debug" >Debug</Link>} />
|
||||
</IconMenu>
|
||||
<MenuItem primaryText={<Link to='/search' >Incident Search</Link>} />
|
||||
<MenuItem primaryText={<Link to='/' onClick={() => dispatch(auth.logOut)}>LogOut</Link>} />
|
||||
<MenuItem primaryText={<Link to='/debug' >Debug</Link>} />
|
||||
</IconMenu>
|
||||
|
||||
NavMenu.propTypes = {
|
||||
dispatch: PropTypes.func
|
||||
dispatch: PropTypes.func
|
||||
}
|
||||
export default connect()(NavMenu)
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче