mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-23 15:20:33 +03:00
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…
x
Reference in New Issue
Block a user