Open dogezen opened 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
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.