Skip to content

Commit

Permalink
Migrate the Link component.
Browse files Browse the repository at this point in the history
  • Loading branch information
ashiskumar-1999 committed Jan 8, 2025
1 parent 541a993 commit c105780
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import { MdChevronRight } from "react-icons/md"
import { ChildOnlyProp } from "@/lib/types"
import { DeveloperDocsLink } from "@/lib/interfaces"

import { BaseLink, LinkProps } from "@/components/Link"

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

import { HStack } from "./ui/flex"
import { BaseLink, LinkProps } from "./ui/Link"

export const dropdownIconContainerVariant = {
open: {
Expand Down Expand Up @@ -44,12 +43,7 @@ const LinkContainer = ({ children }: ChildOnlyProp) => {
const SideNavLink = ({ children, ...props }: LinkProps) => {
return (
<BaseLink
w="full"
textDecoration="none"
color="text"
fontWeight="normal"
_hover={{ textDecoration: "none", color: "primary.base" }}
_active={{ color: "primary.base" }}
className="w-full font-normal text-body no-underline hover:text-primary"
{...props}
>
{children}
Expand Down

0 comments on commit c105780

Please sign in to comment.