Skip to content

Commit 2bc8f17

Browse files
committed
migrate old link component
1 parent 4d05ae0 commit 2bc8f17

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

src/components/SideNavMobile.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,10 @@ import { MdChevronRight } from "react-icons/md"
66
import type { ChildOnlyProp, TranslationKey } 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 { Center, HStack } from "./ui/flex"
12+
import { BaseLink, LinkProps } from "./ui/Link"
1413
import {
1514
dropdownIconContainerVariant,
1615
type NavLinkProps as SideNavLinkProps,
@@ -57,16 +56,7 @@ const LinkContainer = ({ children }: ChildOnlyProp) => {
5756
const SideNavLink = ({ children, ...props }: LinkProps) => {
5857
return (
5958
<BaseLink
60-
w="full"
61-
textDecoration="none"
62-
color="text"
63-
_hover={{
64-
textDecoration: "none",
65-
color: "primary.base",
66-
}}
67-
_active={{
68-
color: "primary.base",
69-
}}
59+
className="w-full text-body no-underline hover:text-primary"
7060
{...props}
7161
>
7262
{children}

0 commit comments

Comments
 (0)