Skip to content

Commit

Permalink
Update SideNav to response better (#1530)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisachu authored Jul 22, 2023
1 parent 76853ce commit 9692a29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby-theme-aio/src/components/Layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ export default ({ children, pageContext, location }) => {
useEffect( () => {
if (window.innerWidth >= parseInt(MOBILE_SCREEN_WIDTH)) {
setShowSideNav(false);
setHasSideNav(false);
}
}, [location]);

Expand Down

0 comments on commit 9692a29

Please sign in to comment.