Hide BulkActionsToolbar after removing songs from playlist (#898)

This commit is contained in:
Ritik Pandey
2021-03-26 07:10:31 +05:30
committed by GitHub
parent 210f34bbbe
commit 5abc215270
2 changed files with 16 additions and 4 deletions
+5 -2
View File
@@ -77,7 +77,7 @@ const ReorderableList = ({ readOnly, children, ...rest }) => {
}
const PlaylistSongs = ({ playlistId, readOnly, ...props }) => {
const { data, ids } = props
const { data, ids, onUnselectItems } = props
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
const classes = useStyles({ isDesktop })
@@ -139,7 +139,10 @@ const PlaylistSongs = ({ playlistId, readOnly, ...props }) => {
key={version}
>
<BulkActionsToolbar {...props}>
<PlaylistSongBulkActions playlistId={playlistId} />
<PlaylistSongBulkActions
playlistId={playlistId}
onUnselectItems={onUnselectItems}
/>
</BulkActionsToolbar>
<ReorderableList
readOnly={readOnly}