coding-allies / projects-platform-frontend

She's Coding Projects collaboration platform for womxn in tech.
http://projects.shescoding.org/#/
MIT License
9 stars 59 forks source link

Project Card: Change contributors avatars to be github avatars #111

Open ctran14 opened 3 years ago

ctran14 commented 3 years ago

STATUS: BLOCKED - backend should return avatar links instead of names.

User story: As a user, it would be helpful to see a contributor's github avatar.

Deliverable: In the project card, the list of contributors should show GitHub avatar instead of initials.

Implementation instructions:

  1. In projectCard.tsx file update the functiongetContributors to render avatar images, instead of letters: `const getContributors = (contributorList: Array) => { if (contributorList.length > 6) { contributorList = [...contributorList.slice(0, 6), "..."]; }

    return contributorList.map((contributor, i) => (

    {contributor[0].toUpperCase()}

    )); };`

  2. Use this link to see an example - https://stackoverflow.com/questions/51184136/display-an-image-from-url-in-reactjs/51184238