Added onOverlayClick to handle the NavBar. Hide it initially + added a fixed permanentAt to make editing screen more usable.
This commit is contained in:
parent
03ac8fcaed
commit
4868267669
@ -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}>
|
||||
|
Loading…
x
Reference in New Issue
Block a user