Skip to content

Commit

Permalink
feat(ui): replace link icon to ArrowSquareOut on blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jan 11, 2024
1 parent 35205d9 commit 1485a9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/blog/post/[slug]/components/anchor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AnchorHTMLAttributes, DetailedHTMLProps, ReactNode } from 'react'

import { ArrowSquareOut } from '@phosphor-icons/react/dist/ssr'
import { ArrowUpRight } from '@phosphor-icons/react/dist/ssr'

interface Props
extends DetailedHTMLProps<
Expand All @@ -12,8 +12,9 @@ interface Props

export function Anchor({ children, href, ...props }: Props) {
return (
<a className="inline-flex items-center gap-1" href={href} {...props}>
{children} <ArrowSquareOut size="1em" />
<a className="inline-flex items-end leading-none" href={href} {...props}>
<span>{children}</span>
<ArrowUpRight size="1em" className="text-xs" />
</a>
)
}

0 comments on commit 1485a9d

Please sign in to comment.