Removed autohide navbar

This commit is contained in:
Cássio Zen 2016-10-03 11:18:10 -03:00
parent ffb1d7a491
commit e5d4cc55b2

View File

@ -25,15 +25,6 @@ class App extends React.Component {
componentDidMount() {
this.props.dispatch(loadConfig());
window.addEventListener('resize', this.closeDrawer);
}
componentWillUnmount() {
window.removeEventListener('resize', this.closeDrawer);
}
closeDrawer = () => {
this.setState({ navDrawerIsVisible: false });
}
configError(config) {
@ -146,7 +137,7 @@ class App extends React.Component {
<NavDrawer
active={navDrawerIsVisible}
scrollY
permanentAt={navDrawerIsVisible && 'lg'}
permanentAt={navDrawerIsVisible ? 'lg' : null}
theme={styles}
>
<nav className={styles.nav}>