mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-11 15:29:15 +01:00
move track player hooks and mapping into state
This commit is contained in:
@@ -135,7 +135,9 @@ const ListItem: React.FC<{
|
||||
|
||||
const starItem = useStore(selectMusic.starItem)
|
||||
const toggleStarred = useCallback(() => {
|
||||
starItem(item.id, item.itemType, starred)
|
||||
if (item.itemType !== 'playlist') {
|
||||
starItem(item.id, item.itemType, starred)
|
||||
}
|
||||
}, [item.id, item.itemType, starItem, starred])
|
||||
|
||||
let title = <></>
|
||||
|
||||
Reference in New Issue
Block a user