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> </Link>
{ item.widget && { item.widget &&
<div class="widget"> <div class="widget">
<button class='button'>Agregar a mi lista</button> {item.widget}
</div> </div>
} }
</div> </div>

View File

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

View File

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