From c4d03df4e1067645d0767c4562ab5a2b3a6d1104 Mon Sep 17 00:00:00 2001 From: Luis Felipe Risch <lfr20@inf.ufpr.br> Date: Tue, 9 Feb 2021 10:23:02 -0300 Subject: [PATCH] Passed the correct params to resource card --- src/Components/ResourceList.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Components/ResourceList.js b/src/Components/ResourceList.js index 8535534f..3c953fc4 100644 --- a/src/Components/ResourceList.js +++ b/src/Components/ResourceList.js @@ -119,10 +119,11 @@ export default function ResourceList(props) { </Grid> <Grid container direction="row" justify="flex-start" alignItems="center"> {props.resources.map((r) => { + console.log(r); return ( <ResourceGrid item key={r.title}> <ResourceCardFunction - avatar={r.publisher.avatar} + avatar={r.avatar} id={r.id} thumbnail={r.thumbnail} type={r.object_type ? r.object_type : "Outros"} @@ -131,7 +132,7 @@ export default function ResourceList(props) { likeCount={r.likes_count} liked={r.liked} rating={r.review_average} - author={r.publisher.name} + author={r.title} tags={r.tags} href={"/recurso/" + r.id} downloadableLink={r.default_attachment_location} -- GitLab