Skip to content

Commit

Permalink
fix(external-link): spread rest props last
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Nov 8, 2024
1 parent b4d94d9 commit 70e2ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/link/external-link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export type ExternalLinkProps = Omit<LinkProps, 'isExternal' | 'children'> & { l

export const ExternalLink = ({ label, ...rest }: ExternalLinkProps) => {
return (
<Link isExternal {...rest} display="flex" alignItems="center">
<Link isExternal display="flex" alignItems="center" {...rest}>
{label}
<Icon display="inline" verticalAlign="middle" marginInlineStart={2} as={PiArrowSquareOutBold} />
</Link>
Expand Down

0 comments on commit 70e2ba4

Please sign in to comment.