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