Update playqueueadd props

This commit is contained in:
jeffvli 2023-05-20 14:55:08 -07:00
parent 7dd56bfb9b
commit 02caf896ff
24 changed files with 53 additions and 44 deletions

View file

@ -249,7 +249,7 @@ export const AlbumArtistDetailContent = () => {
id: [albumArtistId],
type: LibraryItem.ALBUM_ARTIST,
},
play: playType || playButtonBehavior,
playType: playType || playButtonBehavior,
});
};
@ -259,7 +259,7 @@ export const AlbumArtistDetailContent = () => {
if (!e.data) return;
handlePlayQueueAdd?.({
byData: [e.data],
play: playButtonBehavior,
playType: playButtonBehavior,
});
};

View file

@ -36,7 +36,7 @@ export const AlbumArtistDetailTopSongsListContent = ({
if (!e.data) return;
handlePlayQueueAdd?.({
byData: [e.data],
play: playButtonBehavior,
playType: playButtonBehavior,
});
};

View file

@ -20,10 +20,10 @@ export const AlbumArtistDetailTopSongsListHeader = ({
const handlePlayQueueAdd = usePlayQueueAdd();
const playButtonBehavior = usePlayButtonBehavior();
const handlePlay = async (play: Play) => {
const handlePlay = async (playType: Play) => {
handlePlayQueueAdd?.({
byData: data,
play,
playType,
});
};

View file

@ -28,7 +28,7 @@ const AlbumArtistDetailRoute = () => {
id: [albumArtistId],
type: LibraryItem.ALBUM_ARTIST,
},
play: playButtonBehavior,
playType: playButtonBehavior,
});
};