Skip to content

Commit b2eccc6

Browse files
committed
fix: hidden link in portrait style
1 parent d05bbfd commit b2eccc6

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

web/src/layout/Header/navbar/Explore.tsx

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const links = [
6161

6262
const 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
};

0 commit comments

Comments
 (0)