sortedReports.map(item => {
return (
<tr key={item.rowNumber}>
<td> {item.year}</td>
<td> {item.month}</td>
<td> {item.bruto_ukupno}</td>
<td> {item.neto_plata}</td>
<td> {item.topli_obrok}</td>
<td> {item.doprinosi}</td>
<td> {parseInt(item.ukupno_plata)}</td>
<td className="table-actions">
<Link **onClick={}**
to={`/reports/details`}>
<PieChart size="21"/>
</Link>
</td>
</tr>
)});
I need to get the clicked, store its value and pass it to another component where I need to filter employees depending on which reports month was clicked.
THANK YOU SO MUCH :)