boolean-uk / team-dev-frontend-client

1 stars 11 forks source link

Add a link in the Header to take users to the Cohorts pages #100

Open dogezen opened 1 year ago

dogezen commented 1 year ago

As a logged in user, add a <Link> to the Header called "Cohorts". When clicked it should take me to /cohorts. Will need to pass the loggedInUser to the Header component. This link should only be visible if the logged in user is a TEACHER.

In the case the logged in user is a STUDENT, then the link can say "Cohort" and take the user to the /cohorts/:id URL where :id is the cohort id that the logged in user belongs to. If the user is a STUDENT and this ID is null, then don't display a link since the user is in no cohort.

dogezen commented 1 year ago

Warning: if working on this issue, coordinate with anyone else working on the following two issues, to avoid writing code that conflicts

https://github.com/boolean-uk/team-dev-frontend-client/issues/101

https://github.com/boolean-uk/team-dev-frontend-client/issues/102

lucianosimoni commented 1 year ago

Solved in issue #123 🙂