EntityList lee una lista que tiene items
esto es para agregar mas metadata, como por ejemplo, poner headers y esas cosas
This commit is contained in:
@@ -49,7 +49,11 @@ const SearchSongs = (props) => {
|
||||
'subtitle': song.artist.name
|
||||
};
|
||||
});
|
||||
songsComponent = <EntityList items={items}/>
|
||||
const list = {
|
||||
'items': items
|
||||
}
|
||||
songsComponent = <EntityList list={list}/>
|
||||
|
||||
}
|
||||
|
||||
let paginateComponent;
|
||||
@@ -107,7 +111,10 @@ const SearchDiscs = (props) => {
|
||||
'title': disc.title,
|
||||
'subtitle': disc.artist.name
|
||||
}));
|
||||
discsComponent = <EntityList items={items}/>
|
||||
const list = {
|
||||
'items': items
|
||||
}
|
||||
discsComponent = <EntityList list={list}/>
|
||||
}
|
||||
|
||||
let paginateComponent;
|
||||
@@ -165,7 +172,10 @@ const SearchArtists = (props) => {
|
||||
'title': artist.name,
|
||||
'subtitle': [artist.type, artist.country].filter(Boolean).join(' - ')
|
||||
}));
|
||||
artistsContent = <EntityList items={items}/>
|
||||
const list = {
|
||||
'items': items
|
||||
}
|
||||
artistsContent = <EntityList list={list}/>
|
||||
}
|
||||
|
||||
let paginateContent;
|
||||
|
||||
Reference in New Issue
Block a user