Skip to content

Commit

Permalink
Fix missing TrackCover onClick
Browse files Browse the repository at this point in the history
  • Loading branch information
au2001 committed Dec 25, 2023
1 parent 09239f6 commit 8c2118a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/track.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className={styles.container} role={"gridcell"}>
<div className={styles.container} role={"gridcell"} onClick={onClick}>
<div className={styles.index}>{"▸"}</div>
<img
alt="album cover"
Expand Down

0 comments on commit 8c2118a

Please sign in to comment.