this repo has no description www.baileykane.co/
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add optional 'target' prop

BK610 430460c4 aec559ab

+3
+3
components/SocialLink.tsx
··· 1 1 interface Props { 2 2 href: string; 3 + target?: string; 3 4 icon?: string; 4 5 children: React.ReactNode; 5 6 } ··· 7 8 export default function SocialLink({ 8 9 href, 9 10 icon, 11 + target = "_blank", 10 12 children, 11 13 }: Props): React.ReactElement { 12 14 const iconURL = icon ? icon : new URL(href).origin + "/favicon.ico"; ··· 14 16 return ( 15 17 <a 16 18 href={href} 19 + target={target} 17 20 className="p-2 rounded-full dark:text-white bg-stone-100 dark:bg-stone-700 hover:bg-stone-200 hover:dark:bg-stone-600 border border-stone-300 flex gap-1" 18 21 > 19 22 {children}