1
0
Fork 0

Clean up unneeded additions to the state

This commit is contained in:
Amarpreet Minhas 2019-08-27 20:21:11 -04:00
parent 9f56327753
commit 27a29d827a
2 changed files with 2 additions and 13 deletions

View file

@ -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)

View file

@ -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>