diff --git a/src/components/Icon.tsx b/src/components/Icon.tsx
index 248629b..a8ca544 100644
--- a/src/components/Icon.tsx
+++ b/src/components/Icon.tsx
@@ -1,7 +1,8 @@
+import { socials } from '@/components/data/Socials';
import Link from 'next/link';
import toast from 'react-hot-toast';
import copy from 'copy-to-clipboard';
-import { socials } from '@/components/data/Socials';
+import FadeIn from 'react-fade-in';
type Icon = {
children: any;
@@ -23,29 +24,35 @@ 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}
+
+
);
};
diff --git a/src/components/SpotifyCard.tsx b/src/components/SpotifyCard.tsx
index 3818471..d13e267 100644
--- a/src/components/SpotifyCard.tsx
+++ b/src/components/SpotifyCard.tsx
@@ -1,9 +1,9 @@
import { truncate } from '@/utils/truncate';
-import Image from 'next/image';
-import useSWR from 'swr';
-import SongImage from '@/public/song.webp';
-import Link from 'next/link';
import { HiMusicNote } from 'react-icons/hi';
+import Image from 'next/image';
+import Link from 'next/link';
+import FadeIn from 'react-fade-in';
+import useSWR from 'swr';
export const fetcher = (url: RequestInfo) => fetch(url).then((r) => r.json());
@@ -14,29 +14,31 @@ export const NowPlayingCard = () => {
});
return (
-
- {spotify.song ? (
-
- ) : (
-
- )}
-
-
- Listening to{' '}
- {spotify.song ? (
-
- {truncate(`${spotify.song.title}`, 20)}
-
- ) : (
-
nothing
- )}
+
+
+ {spotify.song ? (
+
+ ) : (
+
+ )}
+
+
+ Listening to{' '}
+ {spotify.song ? (
+
+ {truncate(`${spotify.song.title}`, 20)}
+
+ ) : (
+ nothing
+ )}
+
-
+
);
};