From e9a04e7132feda470f14d4fdc0b7f8872efd2fd4 Mon Sep 17 00:00:00 2001 From: Luis Felipe Risch <lfr20@inf.ufpr.br> Date: Fri, 18 Dec 2020 09:41:13 -0300 Subject: [PATCH] Passed the tags properly to resource card function --- src/Components/ResourceList.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Components/ResourceList.js b/src/Components/ResourceList.js index 08a13d46..0121232b 100644 --- a/src/Components/ResourceList.js +++ b/src/Components/ResourceList.js @@ -37,6 +37,8 @@ function Alert(props) { export default function ResourceList(props) { + console.log(props); + const [selected, setSelected] = useState(Array.apply( null, {length: props.resources.length}).map(i => false)); const [selectable, setSelectable] = useState(false); @@ -129,6 +131,7 @@ export default function ResourceList(props) { likeCount={r.likeCount} liked={r.liked} thumbnail={r.thumbnail} + href={"/recurso/" + r.id} /> {selectable ? (<SelectButton -- GitLab