fix: remove invalid artistId/onArtistClick props from AlbumCard usage
AlbumCard's Props interface doesn't include artistId or onArtistClick. Remove these from VirtualizedFavoritesAlbumGrid to fix type error.
This commit is contained in:
1 parent
0c5c9f22ec
commit
0c3a2d15b1
2 files changed
-5
No files matched your search
@@ -41,7 +41,6 @@
|
||||
onAlbumDownload?: (albumId: string) => void;
|
||||
onOpenAlbumFolder?: (albumId: string) => void;
|
||||
onReDownloadAlbum?: (albumId: string) => void;
|
||||
onArtistClick?: (artistId: number) => void;
|
||||
downloadStateVersion?: number;
|
||||
isAlbumDownloaded?: (albumId: string) => boolean;
|
||||
onAlbumClicked?: (albumId: string) => void;
|
||||
@@ -64,7 +63,6 @@
|
||||
onAlbumDownload,
|
||||
onOpenAlbumFolder,
|
||||
onReDownloadAlbum,
|
||||
onArtistClick,
|
||||
downloadStateVersion,
|
||||
isAlbumDownloaded,
|
||||
onAlbumClicked,
|
||||
@@ -291,8 +289,6 @@
|
||||
artwork={album.image?.large || album.image?.thumbnail || ''}
|
||||
title={album.title}
|
||||
artist={album.artist.name}
|
||||
artistId={album.artist.id}
|
||||
onArtistClick={onArtistClick}
|
||||
genre={getGenreLabel?.(album) ?? album.genre?.name ?? ''}
|
||||
releaseDate={album.release_date_original}
|
||||
size="large"
|
||||
|
||||
@@ -1598,7 +1598,6 @@
|
||||
{onAlbumDownload}
|
||||
{onOpenAlbumFolder}
|
||||
{onReDownloadAlbum}
|
||||
{onArtistClick}
|
||||
{downloadStateVersion}
|
||||
{isAlbumDownloaded}
|
||||
onAlbumClick={onAlbumClick}
|
||||
|
||||
Reference in new issue
Block a user