Placeholders en Search

This commit is contained in:
Daniel Cortes
2020-06-16 03:05:53 -04:00
parent 32353f814c
commit 049f7e83d7
2 changed files with 27 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ const SearchSongs = (props) => {
};
let songsComponent = <Fragment/>;
let songsComponent = <EntityList placeholder={true} size={10}/>;
if (songs) {
const items = songs.map((song) => {
return {
@@ -99,7 +99,7 @@ const SearchDiscs = (props) => {
})
};
let discsComponent = <Fragment/>;
let discsComponent = <EntityList placeholder={true} size={10} cover={true}/>;
if (discs) {
const items = discs.map((disc) => ({
'cover': <CoverArt disc={disc}/>,
@@ -157,7 +157,7 @@ const SearchArtists = (props) => {
})
};
let artistsContent = <Fragment/>;
let artistsContent = <EntityList placeholder={true} size={10}/>;
if (artists) {
const items = artists.map((artist) => ({
'cover': null,