Added onOverlayClick to handle the NavBar. Hide it initially + added a fixed permanentAt to make editing screen more usable.

This commit is contained in:
Andrey Okonetchnikov 2016-10-11 11:42:06 +02:00
parent 03ac8fcaed
commit 4868267669

View File

@ -46,7 +46,7 @@ class App extends React.Component {
}
state = {
navDrawerIsVisible: true,
navDrawerIsVisible: false,
};
componentDidMount() {
@ -150,7 +150,8 @@ class App extends React.Component {
<NavDrawer
active={navDrawerIsVisible}
scrollY
permanentAt={navDrawerIsVisible ? 'lg' : null}
permanentAt="lg"
onOverlayClick={this.toggleNavDrawer} // eslint-disable-line
theme={styles}
>
<nav className={styles.nav}>