From f89c8b7681a8ea71379f22c56e1c98c2b8098586 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Mon, 25 Dec 2023 23:40:39 +0000 Subject: [PATCH] Fix missing TrackCover onClick --- src/app/track.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/track.tsx b/src/app/track.tsx index fed17b5..b868428 100644 --- a/src/app/track.tsx +++ b/src/app/track.tsx @@ -1,13 +1,15 @@ import * as Spotify from "spotify-api.js"; +import { DispatchWithoutAction } from "react"; import styles from "./track.module.css"; interface Props { track: Spotify.Track; + onClick?: DispatchWithoutAction; } -export default function TrackCover({ track }: Props) { +export default function TrackCover({ track, onClick }: Props) { return ( -
+
{"▸"}