Skip to content

Instantly share code, notes, and snippets.

View paulopacitti's full-sized avatar

Paulo Pacitti paulopacitti

View GitHub Profile
let items = this.state.data.map((item, key) => {
return(
<ListGroupItem key={key} className={css(styles.fontCenter)}>
<font className={css(styles.fontOswald)}> {moment(item.date, "YYYY-MM-DD").format("DD/MM/YYYY")} | {item.time} | "{item.food}" | {item.kcal} </font> &nbsp; &nbsp; <a onClick={() => this.prepareUpdateRow(item)} className={css(styles.buttonListItem)}> update </a> &nbsp; <a onClick={() => this.prepareDeleteRow(item)} className={css(styles.buttonListItem)}>delete</a>
</ListGroupItem>);
});