Open lorepirri opened 1 year ago
PR #116 and PR #112 created code duplication
these two are basically the same:
components/MentorshipsList/MentorshipCard.js components/MentorshipsList/index.js
and
components/MenteesList/MenteeCard.js components/MenteesList/index.js
just unify them into one
and render Mentee or Mentor info according to which mode the user is into (mentor or mentee)
the endpoint already support the param mode to be mentee or mentor (see pages/api/mentorships.js).
mode
mentee
mentor
pages/api/mentorships.js
also address this comment: https://github.com/tupuio/tupuapp/pull/112#discussion_r1111271883 from @maranta1
Describe the feature/solution you'd like. A clear and concise description of what you want to happen.
Problem
PR #116 and PR #112 created code duplication
these two are basically the same:
and
Feature Description
just unify them into one
and render Mentee or Mentor info according to which mode the user is into (mentor or mentee)
the endpoint already support the param
mode
to bementee
ormentor
(seepages/api/mentorships.js
).also address this comment: https://github.com/tupuio/tupuapp/pull/112#discussion_r1111271883 from @maranta1
Describe the feature/solution you'd like. A clear and concise description of what you want to happen.