From 209711e802a1e768ad148ce65ea7f944959b4354 Mon Sep 17 00:00:00 2001 From: Ashis Kumar Date: Tue, 7 Jan 2025 20:17:46 +0530 Subject: [PATCH] Migrate the link component. --- src/components/SideNav.tsx | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/src/components/SideNav.tsx b/src/components/SideNav.tsx index c2bf84de6f4..c1ac6236c65 100644 --- a/src/components/SideNav.tsx +++ b/src/components/SideNav.tsx @@ -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, @@ -44,12 +42,7 @@ const LinkContainer = ({ children }: ChildOnlyProp) => { const SideNavLink = ({ children, ...props }: LinkProps) => { return ( {children}