mirror of
https://github.com/FranP-code/spooky-spotify-showcase.git
synced 2025-10-13 00:02:36 +00:00
Spookify switch
This commit is contained in:
@@ -10,17 +10,23 @@ ring2.register();
|
||||
quantum.register();
|
||||
|
||||
export default function ArtistShowcase({
|
||||
spookify,
|
||||
images,
|
||||
name,
|
||||
id,
|
||||
}: {
|
||||
spookify: boolean;
|
||||
images: { url: string }[];
|
||||
name: string;
|
||||
id: string;
|
||||
}) {
|
||||
const [showSpookyImage, setShowSpookyImage] = useState(false);
|
||||
const [showSpookyImage, setShowSpookyImage] = useState(spookify);
|
||||
const [spookyImageLoaded, setSpookyImageLoaded] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
setShowSpookyImage(spookify);
|
||||
}, [spookify]);
|
||||
|
||||
const imageSource = images[0]
|
||||
? images[0].url
|
||||
: "https://via.placeholder.com/150";
|
||||
|
||||
Reference in New Issue
Block a user