Skip to content

Commit 7cd386f

Browse files
committed
update change log
1 parent 0d81ff1 commit 7cd386f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
5858
- improved LightHouse scores by optmizing images, creating a robots.txt file and adding proper alt tags
5959
- updated 'about us' first section (our background, peer reviews, version control)
6060
- updated 'about us' section (our goals, our purpose)
61+
- updated mobile nav to automatically close when page route change is completed

components/layout/Nav.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@ export default function Nav() {
4444
setActive(false)
4545
}
4646

47-
router.events.on('routeChangeStart', handleRouteChange)
47+
router.events.on('routeChangeComplete', handleRouteChange)
4848

4949
return () => {
50-
router.events.off('routeChangeStart', handleRouteChange)
50+
router.events.off('routeChangeComplete', handleRouteChange)
5151
}
5252
}, []);
5353

0 commit comments

Comments
 (0)