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

View File

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