Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
Display contact avatar, name, email, and remove button
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermcginnis committed Mar 2, 2018
1 parent 59e929c commit 7e77074
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ListContacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,20 @@ class ListContacts extends Component {
return (
<ol className='contact-list'>
{this.props.contacts.map((contact) => (
<li key={contact.id}>
{contact.name}
<li key={contact.id} className='contact-list-item'>
<div
className='contact-avatar'
style={{
backgroundImage: `url(${contact.avatarURL})`
}}
></div>
<div className='contact-details'>
<p>{contact.name}</p>
<p>{contact.handle}</p>
</div>
<button className='contact-remove'>
Remove
</button>
</li>
))}
</ol>
Expand Down

1 comment on commit 7e77074

@mohmedEldeeb
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • {contact.name} ++
  • Please sign in to comment.