In SearchResultPerson.js, we replace the 'Add to Cohort' button with a dropdown select menu
We can take this functionality from ProfileEdit.js - the logic will be the same, where we loop through the existing cohorts and create an option for each one
We'll make a PATCH request with the same route- /users/:id so the teacher can change a student cohort from the search results menu
This dropdown menu doesn't appear for users with the student role (already implemented)
Cohort dropdown menu
/users/:id
so the teacher can change a student cohort from the search results menu