File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ const NavItems = props => {
4545 return matchPath ( reNews ) ;
4646 }
4747
48+ const handleLinkClick = ( ) => props . setOpenMobileMenu ( )
49+
4850 return (
4951 < React . Fragment >
5052 { data . map ( ( item , index ) => {
@@ -55,6 +57,7 @@ const NavItems = props => {
5557 < InternalLink
5658 key = { index }
5759 to = { item . path || getPath ( item . pathPrefix , item . children [ 0 ] ) }
60+ onClick = { handleLinkClick }
5861 >
5962 { isActive ? (
6063 < Helmet
@@ -66,7 +69,7 @@ const NavItems = props => {
6669 </ InternalLink >
6770 ) ;
6871 } ) }
69- < InternalLink to = "/support" >
72+ < InternalLink to = "/support" onClick = { handleLinkClick } >
7073 < MainNavItem
7174 styleProps = { {
7275 isActive : isActive ( '/support' ) ,
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ const PageHeader = ({
4242 data = { [ docsContents , apiContents ] }
4343 location = { location }
4444 pathPrefix = { pathPrefix }
45+ setOpenMobileMenu = { handlSetOpen }
4546 />
4647 </ MainNavContainer >
4748 </ FlexItem >
@@ -52,6 +53,7 @@ const PageHeader = ({
5253 data = { [ docsContents , apiContents ] }
5354 location = { location }
5455 pathPrefix = { pathPrefix }
56+ setOpenMobileMenu = { handlSetOpen }
5557 />
5658 </ MobileNavContainer >
5759 ) }
You can’t perform that action at this time.
0 commit comments