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

@ -154,7 +154,7 @@ export const PlaylistDetailContent = ({ tableRef }: PlaylistDetailContentProps)
id: [playlistId],
type: LibraryItem.PLAYLIST,
},
play: playType || playButtonBehavior,
playType: playType || playButtonBehavior,
});
};
@ -203,7 +203,7 @@ export const PlaylistDetailContent = ({ tableRef }: PlaylistDetailContentProps)
if (!e.data) return;
handlePlayQueueAdd?.({
byData: [e.data],
play: playButtonBehavior,
playType: playButtonBehavior,
});
};

View file

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

View file

@ -234,7 +234,7 @@ export const PlaylistDetailSongListHeaderFilters = ({
const handlePlay = async (playType: Play) => {
handlePlayQueueAdd?.({
byItemType: { id: [playlistId], type: LibraryItem.PLAYLIST },
play: playType,
playType,
});
};

View file

@ -31,7 +31,7 @@ export const PlaylistDetailSongListHeader = ({
const handlePlay = async (playType: Play) => {
handlePlayQueueAdd?.({
byItemType: { id: [playlistId], type: LibraryItem.PLAYLIST },
play: playType,
playType,
});
};

View file

@ -35,7 +35,7 @@ const PlaylistDetailRoute = () => {
id: [playlistId],
type: LibraryItem.PLAYLIST,
},
play: playButtonBehavior,
playType: playButtonBehavior,
});
};