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 7, 2025
1 parent f35d26c commit 209711e
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import { MdChevronRight } from "react-icons/md"

import { ChildOnlyProp } from "@/lib/types"
import { DeveloperDocsLink } from "@/lib/interfaces"

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

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

import { HStack } from "./ui/flex"

export const dropdownIconContainerVariant = {
open: {
rotate: 90,
Expand Down Expand Up @@ -44,12 +42,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 209711e

Please sign in to comment.