From 034be34e53510f02df7e176e49db5f4d927b4596 Mon Sep 17 00:00:00 2001
From: skidoodle <53189968+skidoodle@users.noreply.github.com>
Date: Tue, 11 Apr 2023 04:51:15 +0200
Subject: [PATCH] .ditch icon fade-in
---
src/components/Icon.tsx | 47 ++++++++++++++++++-----------------------
1 file changed, 20 insertions(+), 27 deletions(-)
diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx
index a8ca544..cad86ef 100644
--- a/src/components/Icon.tsx
+++ b/src/components/Icon.tsx
@@ -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 (
-
- social.ref === reference)?.ariaLabel
- }
- onClick={() => {
- notify(), copy(reference);
- }}
- >
- {children}
-
-
+ social.ref === reference)?.ariaLabel
+ }
+ onClick={() => {
+ notify(), copy(reference);
+ }}
+ >
+ {children}
+
);
}
return (
-
- social.ref === reference)?.ariaLabel
- }
- >
- {children}
-
-
+ social.ref === reference)?.ariaLabel}
+ >
+ {children}
+
);
};