Skip to content

Commit b41e91b

Browse files
committed
feat: better hidden link
1 parent dafa300 commit b41e91b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

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

+10-8
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const StyledLink = styled(Link)<{ isActive: boolean }>`
4949
`;
5050

5151
const HiddenLink = styled(StyledLink)<{ isActive: boolean }>`
52-
color: ${({ theme }) => theme.primaryPurple};
52+
color: ${({ isActive, theme }) => (isActive ? theme.primaryText : theme.primaryPurple)};
5353
`;
5454

5555
const links = [
@@ -77,13 +77,15 @@ const Explore: React.FC = () => {
7777
</StyledLink>
7878
</LinkContainer>
7979
))}
80-
<HiddenLink
81-
to="/disputeTemplate"
82-
onClick={toggleIsOpen}
83-
isActive={location.pathname.startsWith("/disputeTemplate")}
84-
>
85-
X
86-
</HiddenLink>
80+
<LinkContainer>
81+
<HiddenLink
82+
to="/disputeTemplate"
83+
onClick={toggleIsOpen}
84+
isActive={location.pathname.startsWith("/disputeTemplate")}
85+
>
86+
Dev
87+
</HiddenLink>
88+
</LinkContainer>
8789
</Container>
8890
);
8991
};

0 commit comments

Comments
 (0)