From e6d152e1b6b6bcf19bec14a34fd8b43a68525c3b Mon Sep 17 00:00:00 2001 From: WildScotsmen Date: Fri, 30 Nov 2018 17:13:58 -0500 Subject: [PATCH] Prevented having both drawers in side bar open at the same time. --- src/components/Main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Main.js b/src/components/Main.js index b6fe643..15700cf 100644 --- a/src/components/Main.js +++ b/src/components/Main.js @@ -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) => {