File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const links = [
6161
6262const Explore : React . FC = ( ) => {
6363 const location = useLocation ( ) ;
64- const { toggleIsOpen } = useOpenContext ( ) ;
64+ const { isOpen , toggleIsOpen } = useOpenContext ( ) ;
6565
6666 return (
6767 < Container >
@@ -77,15 +77,17 @@ const Explore: React.FC = () => {
7777 </ StyledLink >
7878 </ LinkContainer >
7979 ) ) }
80- < LinkContainer >
81- < HiddenLink
82- to = "/disputeTemplate"
83- onClick = { toggleIsOpen }
84- isActive = { location . pathname . startsWith ( "/disputeTemplate" ) }
85- >
86- Dev
87- </ HiddenLink >
88- </ LinkContainer >
80+ { ! isOpen && (
81+ < LinkContainer >
82+ < HiddenLink
83+ to = "/disputeTemplate"
84+ onClick = { toggleIsOpen }
85+ isActive = { location . pathname . startsWith ( "/disputeTemplate" ) }
86+ >
87+ Dev
88+ </ HiddenLink >
89+ </ LinkContainer >
90+ ) }
8991 </ Container >
9092 ) ;
9193} ;
You can’t perform that action at this time.
0 commit comments