feat: use different resource for listing songs in albums

This commit is contained in:
Deluan
2020-02-14 09:02:32 -05:00
parent b2d022b823
commit 7f94660183
5 changed files with 24 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
import React, { Fragment, useEffect } from 'react'
import { useUnselectAll } from 'react-admin'
import AddToQueueButton from '../song/AddToQueueButton'
export const AlbumSongBulkActions = (props) => {
const unselectAll = useUnselectAll()
useEffect(() => {
unselectAll('albumSong')
// eslint-disable-next-line
}, [])
return (
<Fragment>
<AddToQueueButton {...props} />
</Fragment>
)
}