Skip to content

Unify MentorshipsList and MenteesList into MentorshipsList  #118

@lorepirri

Description

@lorepirri

Problem

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

Feature Description

just unify them into one

components/MentorshipsList/MentorshipCard.js
components/MentorshipsList/index.js

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).

also address this comment: #112 (comment) from @maranta1

Describe the feature/solution you'd like. A clear and concise description of what you want to happen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions