Commit 411dcfc0 authored by Benjamin Bouvier's avatar Benjamin Bouvier
Browse files

[client] Rename dropdown menu stuff;

parent b9cd592b
......@@ -64,7 +64,7 @@ small {
width: 100%;
}
/* Parameters modale */
/* Settings dropdown menu. */
#overlay .settings-dropdown-menu {
position: fixed;
top: 35px;
......
......@@ -56,7 +56,7 @@ class BaseApp extends React.Component {
super(props);
this.state = {
isMenuHidden: this.props.isSmallScreen,
isSettingsMenuShown: false
showSettingsDropdown: false
};
}
......@@ -65,7 +65,7 @@ class BaseApp extends React.Component {
};
handleSettingsMenuToggle = () => {
this.setState({ isSettingsMenuShown: !this.state.isSettingsMenuShown });
this.setState({ showSettingsDropdown: !this.state.showSettingsDropdown });
};
handleWindowResize = throttle(event => {
......@@ -143,9 +143,9 @@ class BaseApp extends React.Component {
);
}
let maybeSettingsMenu = null;
if (this.state.isSettingsMenuShown) {
maybeSettingsMenu = (
let maybeSettingsDropdown = null;
if (this.state.showSettingsDropdown) {
maybeSettingsDropdown = (
<ParamMenu
currentAccountId={currentAccountId}
onClick={this.handleSettingsMenuToggle}
......@@ -169,7 +169,7 @@ class BaseApp extends React.Component {
className="fa fa-cogs clickable"
onClick={this.handleSettingsMenuToggle}
/>
{maybeSettingsMenu}
{maybeSettingsDropdown}
</div>
</header>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment