boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Add functionality to CohortListItem #217

Closed lucianosimoni closed 1 year ago

lucianosimoni commented 1 year ago

When the user press on the component CohortListItem (rendered inside CohortsList), the user should be redirected to the page of that specific cohort.

Todo:

On the CohortListItem.js, add a onClick atribute to the

element. And on click (thought useNavigate imported) navigate to /cohorts/${cohort.id}. Cohort is the prop received by the component. Access its ID (may be cohortId, so check).

Auenc commented 1 year ago

Sounds good to me!