Skip to content
Snippets Groups Projects
Commit c4d03df4 authored by lfr20's avatar lfr20
Browse files

Passed the correct params to resource card

parent 605e732f
Branches
Tags
6 merge requests!57Merge of develop into master,!56Fixed buttons reportar, seguir, compartilhar, guardar and entrar (in comments...,!39Update admin system,!32Homologa,!31Fix console error,!29Training materials into fix console error
...@@ -119,10 +119,11 @@ export default function ResourceList(props) { ...@@ -119,10 +119,11 @@ export default function ResourceList(props) {
</Grid> </Grid>
<Grid container direction="row" justify="flex-start" alignItems="center"> <Grid container direction="row" justify="flex-start" alignItems="center">
{props.resources.map((r) => { {props.resources.map((r) => {
console.log(r);
return ( return (
<ResourceGrid item key={r.title}> <ResourceGrid item key={r.title}>
<ResourceCardFunction <ResourceCardFunction
avatar={r.publisher.avatar} avatar={r.avatar}
id={r.id} id={r.id}
thumbnail={r.thumbnail} thumbnail={r.thumbnail}
type={r.object_type ? r.object_type : "Outros"} type={r.object_type ? r.object_type : "Outros"}
...@@ -131,7 +132,7 @@ export default function ResourceList(props) { ...@@ -131,7 +132,7 @@ export default function ResourceList(props) {
likeCount={r.likes_count} likeCount={r.likes_count}
liked={r.liked} liked={r.liked}
rating={r.review_average} rating={r.review_average}
author={r.publisher.name} author={r.title}
tags={r.tags} tags={r.tags}
href={"/recurso/" + r.id} href={"/recurso/" + r.id}
downloadableLink={r.default_attachment_location} downloadableLink={r.default_attachment_location}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment