mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-18 16:18:52 +01:00
Fix BulkActions contrast once and for all(?)
This commit is contained in:
parent
488db26675
commit
3535fba9dd
4 changed files with 37 additions and 6 deletions
|
|
@ -1,10 +1,11 @@
|
|||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { useDispatch } from 'react-redux'
|
||||
import { Button, useTranslate, useUnselectAll } from 'react-admin'
|
||||
import PlaylistAddIcon from '@material-ui/icons/PlaylistAdd'
|
||||
import { openAddToPlaylist } from '../dialogs/dialogState'
|
||||
|
||||
const AddToPlaylistButton = ({ resource, selectedIds }) => {
|
||||
const AddToPlaylistButton = ({ resource, selectedIds, className }) => {
|
||||
const translate = useTranslate()
|
||||
const dispatch = useDispatch()
|
||||
const unselectAll = useUnselectAll()
|
||||
|
|
@ -20,7 +21,7 @@ const AddToPlaylistButton = ({ resource, selectedIds }) => {
|
|||
aria-controls="simple-menu"
|
||||
aria-haspopup="true"
|
||||
onClick={handleClick}
|
||||
color="secondary"
|
||||
className={className}
|
||||
label={translate('resources.song.actions.addToPlaylist')}
|
||||
>
|
||||
<PlaylistAddIcon />
|
||||
|
|
@ -28,4 +29,10 @@ const AddToPlaylistButton = ({ resource, selectedIds }) => {
|
|||
)
|
||||
}
|
||||
|
||||
AddToPlaylistButton.propTypes = {
|
||||
resource: PropTypes.string.isRequired,
|
||||
selectedIds: PropTypes.arrayOf(PropTypes.string).isRequired,
|
||||
className: PropTypes.object,
|
||||
}
|
||||
|
||||
export default AddToPlaylistButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue