Cuandos usuarios viendo "FAKE"

This commit is contained in:
Daniel Cortes
2020-06-17 06:06:36 -04:00
parent 0617d0a969
commit 104bf6ae8e
3 changed files with 13 additions and 4 deletions

View File

@@ -44,7 +44,7 @@ const EntityItem = (props) => {
</Link>
{ item.widget &&
<div class="widget">
<button class='button'>Agregar a mi lista</button>
{item.widget}
</div>
}
</div>

View File

@@ -127,6 +127,11 @@ svg {
margin: auto;
}
svg.icon {
display: inline-block;
vertical-align: text-bottom;
}
.container {
margin-bottom: 1em;
}

View File

@@ -1,4 +1,5 @@
import React, {useState} from 'react';
import {FaEye} from 'react-icons/fa'
import {getArtist, getDisc, getSong} from '../services/entity_service';
@@ -22,7 +23,8 @@ const PopularArtists = () => {
'cover': null,
'link': `/artist/${artist.id}`,
'title': artist.name,
'subtitle': [artist.type, artist.country].filter(Boolean).join(' - ')
'subtitle': [artist.type, artist.country].filter(Boolean).join(' - '),
'widget': <span><FaEye class='icon'/> {Math.floor(Math.random() * 1000)}</span>
}));
const list = [{
'items': items
@@ -48,7 +50,8 @@ const PopularDiscs = () => {
'cover': <CoverArt disc={disc}/>,
'link': `/disc/${disc.id}`,
'title': disc.title,
'subtitle': disc.artist.name
'subtitle': disc.artist.name,
'widget': <span><FaEye class='icon'/> {Math.floor(Math.random() * 1000)}</span>
}));
const list = [{
'items': items
@@ -74,7 +77,8 @@ const PopularSongs = () => {
'cover': null,
'link': `/song/${song.id}`,
'title': song.title,
'subtitle': song.artist.name
'subtitle': song.artist.name,
'widget': <span><FaEye class='icon'/> {Math.floor(Math.random() * 1000)}</span>
}));
const list = [{
'items': items