Skip to content

Commit

Permalink
Use component
Browse files Browse the repository at this point in the history
  • Loading branch information
moshfeu committed Feb 25, 2019
1 parent 8d94a9c commit 6cf79fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/MentorsList/MentorsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ const tagsList = tags => tags.map((tag, index) => {
const items = (mentors, favs, onToggleFav) => mentors.map((mentor, index) => {
return (<Card className="mentor-card" key={index}>
<header>
<button className="ui right corner label" onClick={onToggleFav.bind(null, mentor)}>
<Label as='button' corner="right" onClick={onToggleFav.bind(null, mentor)}>
<Icon name="heart" color={favs.indexOf(mentor.id) > -1 ? 'red' : 'black'} />
</button>
</Label>
<img src={mentor.avatar} alt={`${mentor.name}'s avatar`} />
<div className="details">
<Card.Header>{mentor.name}</Card.Header>
Expand Down

0 comments on commit 6cf79fc

Please sign in to comment.