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

Passed the correct params

parent 8d55c6d8
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
......@@ -25,6 +25,7 @@ import { WhiteContainer, StyledGrid } from '../StyledComponents.js'
import { ButtonsAreaRecurso } from './ButtonsArea'
export default function Template(props) {
console.log(props.sliceArr);
return (
<WhiteContainer>
<Title
......@@ -48,18 +49,18 @@ export default function Template(props) {
props.sliceArr.map((card) =>
<Grid item md={3} xs={12} key={card.id}>
<ResourceCardFunction
avatar={card.publisher.avatar}
id={card.id}
thumbnail={card.thumbnail}
type={card.object_type ? card.object_type : "Outros"}
title={card.name}
avatar={card.submitter.avatar}
id={card.learning_object.id}
thumbnail={card.learning_object.thumbnail}
type={card.learning_object.object_type ? card.learning_object.object_type : "Outros"}
title={card.learning_object.name}
published={false}
likeCount={card.likes_count}
liked={card.liked}
rating={card.review_average}
author={card.publisher.name}
tags={card.tags}
href={"/recurso/" + card.id}
likeCount={card.learning_object.likes_count}
liked={card.learning_object.liked}
rating={card.learning_object.review_average}
author={card.submitter.name}
tags={card.learning_object.tags}
href={"/recurso/" + card.learning_object.id}
downloadableLink={card.default_attachment_location}
/>
</Grid>
......
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