Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render: function () {
- var establishments = this.state.establishments.map(function (establishment, index) {
- var panelType = 'good';
- if (establishment.highest_incidence_priority > 0) {
- panelType = 'bad';
- }
- return (
- <Panel companyID={ company.id } companyName={ company.name } establishmentID={ establishment.id } key={ index } priority={ establishment.highest_incidence_priority } name={ establishment.name } address={ establishment.address} type={ panelType } />
- );
- }.bind(this));
- return (
- <section>
- { establishments }
- </section>
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement