Hey,
The first task is to implement approve/decline mentor
The scenario for the implementation is given below:
Users can apply as a mentor for a program. As admins, we will short list few mentors for the program. Therefore it is essential to have a feature to approve/decline in the MENTOR_VERIFICATION_PERIOD.
The wireframe is as follows:
Approach
- I’ll be using this endpoint to achieve the task where the appoved/declined state would be fetched and edited
PUT /{id}/state
- I’m hoping to use the switch component as it would give a clear idea on the two states.