1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00

Remove unnecessary eventKeys from nav bar

This commit is contained in:
Brett Sun 2016-06-16 17:27:02 +02:00
parent d89ef347ac
commit 9244f9bf08

View File

@ -121,12 +121,11 @@ let Header = React.createClass({
<DropdownButton <DropdownButton
ref='dropdownbutton' ref='dropdownbutton'
id="nav-route-user-dropdown" id="nav-route-user-dropdown"
eventKey="1"
title={currentUser.username}> title={currentUser.username}>
<LinkContainer <LinkContainer
to="/settings" to="/settings"
onClick={this.onMenuItemClick}> onClick={this.onMenuItemClick}>
<MenuItem eventKey="2"> <MenuItem>
{getLangText('Account Settings')} {getLangText('Account Settings')}
</MenuItem> </MenuItem>
</LinkContainer> </LinkContainer>
@ -136,14 +135,14 @@ let Header = React.createClass({
<LinkContainer <LinkContainer
to="/contract_settings" to="/contract_settings"
onClick={this.onMenuItemClick}> onClick={this.onMenuItemClick}>
<MenuItem eventKey="2"> <MenuItem>
{getLangText('Contract Settings')} {getLangText('Contract Settings')}
</MenuItem> </MenuItem>
</LinkContainer> </LinkContainer>
</AclProxy> </AclProxy>
<MenuItem divider /> <MenuItem divider />
<LinkContainer to="/logout"> <LinkContainer to="/logout">
<MenuItem eventKey="3"> <MenuItem>
{getLangText('Log out')} {getLangText('Log out')}
</MenuItem> </MenuItem>
</LinkContainer> </LinkContainer>
@ -197,8 +196,7 @@ let Header = React.createClass({
</AclProxy> </AclProxy>
<Navbar.Toggle /> <Navbar.Toggle />
</Navbar.Header> </Navbar.Header>
<Navbar.Collapse <Navbar.Collapse>
eventKey={0}>
<Nav navbar pullRight> <Nav navbar pullRight>
<HeaderNotificationDebug show={false}/> <HeaderNotificationDebug show={false}/>
{account} {account}