Skip to content

Commit 183c168

Browse files
committed
migrate Icon used for the external links
1 parent ba4164a commit 183c168

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tailwind/Link.tsx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { AnchorHTMLAttributes, forwardRef } from "react"
22
import NextLink, { type LinkProps as NextLinkProps } from "next/link"
33
import { useRouter } from "next/router"
44
import { RxExternalLink } from "react-icons/rx"
5-
import { Icon } from "@chakra-ui/react"
65
import { VisuallyHidden } from "@radix-ui/react-visually-hidden"
76

87
import { cn } from "@/lib/utils/cn"
@@ -103,13 +102,10 @@ export const BaseLink = forwardRef<HTMLAnchorElement, LinkProps>(function Link(
103102
{children}
104103
<VisuallyHidden>(opens in a new tab)</VisuallyHidden>
105104
{!hideArrow && (
106-
<Icon
107-
as={RxExternalLink}
108-
boxSize="6"
109-
p="1"
110-
verticalAlign="middle"
111-
me="-1"
112-
transform={flipForRtl}
105+
<RxExternalLink
106+
className={cn("-me-1 inline h-6 w-6 p-1 align-middle", {
107+
transform: flipForRtl,
108+
})}
113109
/>
114110
)}
115111
</a>

0 commit comments

Comments
 (0)