diff --git a/src/Pages/ResourcePage.js b/src/Pages/ResourcePage.js index 9dc97a8fcab1acb69d183160de53ffd5aae01ed0..9fe104c56d857f09871373d63e66400b6adc4ad0 100644 --- a/src/Pages/ResourcePage.js +++ b/src/Pages/ResourcePage.js @@ -79,7 +79,6 @@ export default function LearningObjectPage (props){ ) : ( - [ <Grid container spacing={2}> <Grid item xs={12}> <Card> @@ -111,9 +110,10 @@ export default function LearningObjectPage (props){ recursoId={id} downloadableLink = {recurso.default_attachment_location} handleSnackbar={handleSnackbar} + link={recurso.link} title={recurso.name} thumb={recurso.thumbnail} - link={window.location.href} + currPageLink={window.location.href} handleSnackbar={handleSnackbar} /> </Card> @@ -122,7 +122,6 @@ export default function LearningObjectPage (props){ <Grid item xs={12}> <Card> {/*add option to MoreVertIcon*/} - {/*change file size display*/} {/*change render method on additional item info*/} <Sobre avatar={recurso.publisher.avatar ? (apiDomain + recurso.publisher.avatar) : noAvatar} @@ -141,18 +140,19 @@ export default function LearningObjectPage (props){ </Card> </Grid> + <Grid item xs={12}> <Card> {/*adicionar funcionalidade ao botao de entrar*/} <CommentsArea recursoId = {id} handleSnackbar={handleSnackbar} + objType={recurso.object_type} /> </Card> </Grid> </Grid> - ] ) }