File tree 1 file changed +12
-10
lines changed
1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ const links = [
61
61
62
62
const Explore : React . FC = ( ) => {
63
63
const location = useLocation ( ) ;
64
- const { toggleIsOpen } = useOpenContext ( ) ;
64
+ const { isOpen , toggleIsOpen } = useOpenContext ( ) ;
65
65
66
66
return (
67
67
< Container >
@@ -77,15 +77,17 @@ const Explore: React.FC = () => {
77
77
</ StyledLink >
78
78
</ LinkContainer >
79
79
) ) }
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
+ ) }
89
91
</ Container >
90
92
) ;
91
93
} ;
You can’t perform that action at this time.
0 commit comments