Skip to content

Commit c105780

Browse files
Migrate the Link component.
1 parent 541a993 commit c105780

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/components/SideNav.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { MdChevronRight } from "react-icons/md"
66
import { ChildOnlyProp } from "@/lib/types"
77
import { DeveloperDocsLink } from "@/lib/interfaces"
88

9-
import { BaseLink, LinkProps } from "@/components/Link"
10-
119
import docLinks from "../data/developer-docs-links.yaml"
1210

1311
import { HStack } from "./ui/flex"
12+
import { BaseLink, LinkProps } from "./ui/Link"
1413

1514
export const dropdownIconContainerVariant = {
1615
open: {
@@ -44,12 +43,7 @@ const LinkContainer = ({ children }: ChildOnlyProp) => {
4443
const SideNavLink = ({ children, ...props }: LinkProps) => {
4544
return (
4645
<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" }}
46+
className="w-full font-normal text-body no-underline hover:text-primary"
5347
{...props}
5448
>
5549
{children}

0 commit comments

Comments
 (0)