Commit 43cd3d77 authored by aparrot's avatar aparrot
Browse files

change result-cards for build acceptance, the function onClick from the...

change result-cards for build acceptance, the function onClick from the Link'Consulter' was not working
parent fb62eda2
......@@ -15,6 +15,8 @@ export default class ResultCards extends Component {
}
else
{
// let e = searchResult.providers[0];
return(
<React.Fragment>
<h2>Voici les resultats pour: "{lastSearchTitle}"</h2>
......@@ -22,6 +24,7 @@ export default class ResultCards extends Component {
{
searchResult.providers.map((e) => {
return(
<div className="column is-one-quarter has-text-centered">
<div className="card">
<div className="card-content">
......@@ -37,12 +40,11 @@ export default class ResultCards extends Component {
{e.libelleProfession}
<br />
</div>
<Link to={"/toobibPage/" + e.id} className="button is-link is-light has-text-right" onClick={toobibDataFunction()} value={e.id}>Consulter</Link>
<Link to={"/toobibPage/" + e.id} className="button is-link is-light has-text-right" value={e.id}>Consulter</Link>
</div>
</div>
</div>
)
})
)})
}
</nav>
</React.Fragment>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment