.ditch icon fade-in

This commit is contained in:
skidoodle 2023-04-11 04:51:15 +02:00
parent 9e7e5d00f3
commit 034be34e53

View file

@ -2,7 +2,6 @@ import { socials } from '@/components/data/Socials';
import Link from 'next/link';
import toast from 'react-hot-toast';
import copy from 'copy-to-clipboard';
import FadeIn from 'react-fade-in';
type Icon = {
children: any;
@ -24,7 +23,6 @@ const notify = () => {
export const Icon = ({ children, reference, copyValue }: Icon) => {
if (copyValue) {
return (
<FadeIn>
<Link
href={''}
className={`cursor-pointer`}
@ -37,22 +35,17 @@ export const Icon = ({ children, reference, copyValue }: Icon) => {
>
{children}
</Link>
</FadeIn>
);
}
return (
<FadeIn>
<Link
href={reference}
target='_blank'
className={'cursor-pointer'}
aria-label={
socials.find((social) => social.ref === reference)?.ariaLabel
}
aria-label={socials.find((social) => social.ref === reference)?.ariaLabel}
>
{children}
</Link>
</FadeIn>
);
};