Created
March 8, 2017 11:10
-
-
Save cmilfont/52026518d75b846c56d335ccbc484280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CustomerRow = ({ customer: { name, email } }) => ( | |
<div className="ustomers-grid__row"> | |
<div className="ustomers-grid__row-name">{name}</div> | |
<div className="ustomers-grid__row-email">{email}</div> | |
</div> | |
); | |
const Customers = ({ customers }) => { | |
const list = customers.map(customer => (<CustomerRow customer={customer} />); | |
return ( | |
<div className="customers-grid"> | |
<Toolbar /> | |
<Grid rows={list} /> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment