feat: add "Compilation" filter to albums

This commit is contained in:
Deluan 2020-03-19 23:25:40 -04:00
parent 8401d85f78
commit 270b0ae74e
2 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import {
FunctionField, FunctionField,
SearchInput, SearchInput,
NumberInput, NumberInput,
BooleanInput,
Show, Show,
SimpleShowLayout, SimpleShowLayout,
TextField TextField
@ -19,6 +20,7 @@ import { useMediaQuery } from '@material-ui/core'
const AlbumFilter = (props) => ( const AlbumFilter = (props) => (
<Filter {...props}> <Filter {...props}>
<SearchInput source="name" alwaysOn /> <SearchInput source="name" alwaysOn />
<BooleanInput source="compilation" options={{ color: 'primary' }} />
<NumberInput source="year" /> <NumberInput source="year" />
</Filter> </Filter>
) )

View File

@ -7,6 +7,13 @@ export const DarkTheme = {
}, },
secondary: blue, secondary: blue,
type: 'dark' type: 'dark'
},
overrides: {
MuiFormGroup: {
root: {
color: 'white'
}
}
} }
} }