Add stars to Artist

This commit is contained in:
Deluan
2020-08-14 13:19:32 -04:00
parent bbc4f9f91f
commit f2ebbd26fa
3 changed files with 84 additions and 10 deletions
+7
View File
@@ -9,10 +9,12 @@ import {
TextField,
} from 'react-admin'
import { useMediaQuery, withWidth } from '@material-ui/core'
import StarIcon from '@material-ui/icons/Star'
import AddToPlaylistDialog from '../dialogs/AddToPlaylistDialog'
import {
ArtistContextMenu,
List,
QuickFilter,
SimpleList,
useGetHandleArtistClick,
} from '../common'
@@ -20,6 +22,11 @@ import {
const ArtistFilter = (props) => (
<Filter {...props}>
<SearchInput source="name" alwaysOn />
<QuickFilter
source="starred"
label={<StarIcon fontSize={'small'} />}
defaultValue={true}
/>
</Filter>
)