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

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

View file

@ -261,7 +261,7 @@ export const SongListHeaderFilters = ({
handleFilterChange(filter);
};
const handlePlay = async (play: Play) => {
const handlePlay = async (playType: Play) => {
if (!itemCount || itemCount === 0) return;
const query: SongListQuery = { startIndex: 0, ...filter, ...customFilters };
@ -270,7 +270,7 @@ export const SongListHeaderFilters = ({
id: query,
type: LibraryItem.SONG,
},
play,
playType,
});
};

View file

@ -94,7 +94,7 @@ export const SongListHeader = ({
const playButtonBehavior = usePlayButtonBehavior();
const handlePlay = async (play: Play) => {
const handlePlay = async (playType: Play) => {
if (!itemCount || itemCount === 0) return;
const query: SongListQuery = { startIndex: 0, ...filter, ...customFilters };
@ -103,7 +103,7 @@ export const SongListHeader = ({
id: query,
type: LibraryItem.SONG,
},
play,
playType,
});
};