Skip to content

Commit

Permalink
fix: hidden link in portrait style
Browse files Browse the repository at this point in the history
  • Loading branch information
jaybuidl committed Feb 5, 2024
1 parent d05bbfd commit b2eccc6
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions web/src/layout/Header/navbar/Explore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const links = [

const Explore: React.FC = () => {
const location = useLocation();
const { toggleIsOpen } = useOpenContext();
const { isOpen, toggleIsOpen } = useOpenContext();

return (
<Container>
Expand All @@ -77,15 +77,17 @@ const Explore: React.FC = () => {
</StyledLink>
</LinkContainer>
))}
<LinkContainer>
<HiddenLink
to="/disputeTemplate"
onClick={toggleIsOpen}
isActive={location.pathname.startsWith("/disputeTemplate")}
>
Dev
</HiddenLink>
</LinkContainer>
{!isOpen && (
<LinkContainer>
<HiddenLink
to="/disputeTemplate"
onClick={toggleIsOpen}
isActive={location.pathname.startsWith("/disputeTemplate")}
>
Dev
</HiddenLink>
</LinkContainer>
)}
</Container>
);
};
Expand Down

0 comments on commit b2eccc6

Please sign in to comment.