Remove React warnings by omit properties not used downstream

This commit is contained in:
Deluan 2020-04-02 19:58:34 -04:00
parent ea22b2fc6d
commit 40638688b2
1 changed files with 2 additions and 2 deletions

View File

@ -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"