diff --git a/src/components/SongCard.jsx b/src/components/SongCard.jsx index 248165b..ce7884f 100644 --- a/src/components/SongCard.jsx +++ b/src/components/SongCard.jsx @@ -10,8 +10,8 @@ const SongCard = ({ song, isPlaying, activeSong, data, i }) => { return (
-
-
+
+
{isPlaying && activeSong.title === song.title ? ( dispatch(playPause(false))} /> ) : ( diff --git a/src/pages/Home.jsx b/src/pages/Home.jsx index 0feec9f..800c09a 100644 --- a/src/pages/Home.jsx +++ b/src/pages/Home.jsx @@ -24,7 +24,7 @@ const Home = () => { const songs = location.pathname.startsWith('/search') ? data.map((song) => song.track) : data; return ( -
+
{songs?.map((song, i) => (