Clean up unneeded additions to the state
This commit is contained in:
parent
9f56327753
commit
27a29d827a
2 changed files with 2 additions and 13 deletions
|
@ -72,14 +72,4 @@ class AuthMenu extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
where_in_auth_menu: state.where_in_auth_menu,
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(
|
||||
mapStateToProps,
|
||||
)(AuthMenu);
|
||||
export default (AuthMenu)
|
||||
|
|
|
@ -9,7 +9,6 @@ class NavBar extends Component {
|
|||
this.state = {
|
||||
logged_in: false,
|
||||
auth_menu_visible: false,
|
||||
where_in_auth_menu: "username",
|
||||
}
|
||||
this.handleLoginDropdown = this.handleLoginDropdown.bind(this)
|
||||
}
|
||||
|
@ -30,7 +29,7 @@ class NavBar extends Component {
|
|||
<div onClick={this.handleLoginDropdown} className='item ui button dropdown'>
|
||||
Login
|
||||
<i className="dropdown icon"></i>
|
||||
<AuthMenu showMenu={this.state.auth_menu_visible} auth_location={this.state.where_in_auth_menu}></AuthMenu>
|
||||
<AuthMenu showMenu={this.state.auth_menu_visible}></AuthMenu>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Reference in a new issue