Prevented having both drawers in side bar open at the same time.
This commit is contained in:
parent
a06f991888
commit
e6d152e1b6
|
@ -96,11 +96,11 @@ class ResponsiveDrawer extends React.Component {
|
|||
}
|
||||
|
||||
handleClick = () => {
|
||||
this.setState(state => ({ open: !state.open }));
|
||||
this.setState(state => ({ open: !state.open, open2: false }));
|
||||
}
|
||||
|
||||
handleClick2 = () => {
|
||||
this.setState(state => ({ open2: !state.open2 }));
|
||||
this.setState(state => ({ open2: !state.open2, open: false }));
|
||||
}
|
||||
|
||||
nav = (text) => {
|
||||
|
|
Loading…
Reference in New Issue