Remove React warnings by omit properties not used downstream
This commit is contained in:
parent
ea22b2fc6d
commit
40638688b2
|
@ -25,10 +25,10 @@ const AlbumDetails = (props) => {
|
|||
)
|
||||
}
|
||||
|
||||
const AlbumListView = (props) => {
|
||||
const AlbumListView = ({ hasShow, hasEdit, hasList, ...rest }) => {
|
||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||
return (
|
||||
<Datagrid {...props} expand={<AlbumDetails />} rowClick={'show'}>
|
||||
<Datagrid expand={<AlbumDetails />} rowClick={'show'} {...rest}>
|
||||
<TextField source="name" />
|
||||
<FunctionField
|
||||
source="artist"
|
||||
|
|
Loading…
Reference in New Issue