Skip to content

Commit 209711e

Browse files
Migrate the link component.
1 parent f35d26c commit 209711e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/components/SideNav.tsx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ import { MdChevronRight } from "react-icons/md"
55

66
import { ChildOnlyProp } from "@/lib/types"
77
import { DeveloperDocsLink } from "@/lib/interfaces"
8-
9-
import { BaseLink, LinkProps } from "@/components/Link"
8+
import { BaseLink, LinkProps } from "./ui/Link"
9+
import { HStack } from "./ui/flex"
1010

1111
import docLinks from "../data/developer-docs-links.yaml"
1212

13-
import { HStack } from "./ui/flex"
14-
1513
export const dropdownIconContainerVariant = {
1614
open: {
1715
rotate: 90,
@@ -44,12 +42,7 @@ const LinkContainer = ({ children }: ChildOnlyProp) => {
4442
const SideNavLink = ({ children, ...props }: LinkProps) => {
4543
return (
4644
<BaseLink
47-
w="full"
48-
textDecoration="none"
49-
color="text"
50-
fontWeight="normal"
51-
_hover={{ textDecoration: "none", color: "primary.base" }}
52-
_active={{ color: "primary.base" }}
45+
className="w-full font-normal text-body no-underline hover:text-primary"
5346
{...props}
5447
>
5548
{children}

0 commit comments

Comments
 (0)