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
No related branches found
No related tags found
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) {
</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}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment