feat: add "Compilation" filter to albums
This commit is contained in:
parent
8401d85f78
commit
270b0ae74e
2 changed files with 9 additions and 0 deletions
|
|
@ -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>
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,6 +7,13 @@ export const DarkTheme = {
|
|||
},
|
||||
secondary: blue,
|
||||
type: 'dark'
|
||||
},
|
||||
overrides: {
|
||||
MuiFormGroup: {
|
||||
root: {
|
||||
color: 'white'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue