mirror of
https://github.com/skidoodle/albert.lol.git
synced 2025-02-15 06:09:15 +01:00
.ditch icon fade-in
This commit is contained in:
parent
9e7e5d00f3
commit
034be34e53
1 changed files with 20 additions and 27 deletions
|
@ -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,35 +23,29 @@ const notify = () => {
|
|||
export const Icon = ({ children, reference, copyValue }: Icon) => {
|
||||
if (copyValue) {
|
||||
return (
|
||||
<FadeIn>
|
||||
<Link
|
||||
href={''}
|
||||
className={`cursor-pointer`}
|
||||
aria-label={
|
||||
socials.find((social) => social.ref === reference)?.ariaLabel
|
||||
}
|
||||
onClick={() => {
|
||||
notify(), copy(reference);
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
</FadeIn>
|
||||
<Link
|
||||
href={''}
|
||||
className={`cursor-pointer`}
|
||||
aria-label={
|
||||
socials.find((social) => social.ref === reference)?.ariaLabel
|
||||
}
|
||||
onClick={() => {
|
||||
notify(), copy(reference);
|
||||
}}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<FadeIn>
|
||||
<Link
|
||||
href={reference}
|
||||
target='_blank'
|
||||
className={'cursor-pointer'}
|
||||
aria-label={
|
||||
socials.find((social) => social.ref === reference)?.ariaLabel
|
||||
}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
</FadeIn>
|
||||
<Link
|
||||
href={reference}
|
||||
target='_blank'
|
||||
className={'cursor-pointer'}
|
||||
aria-label={socials.find((social) => social.ref === reference)?.ariaLabel}
|
||||
>
|
||||
{children}
|
||||
</Link>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue