Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return <Row style={styles.row} key={idx} item={item} onSelect={this.props.onRowSelect}>
- {columns.map((col, idx) => {
- return <Column style={col.style} key={`${item._id}_${col.key}`}
- width={col.width || this._defaultCellWidth} type={col.type}>
- {_.get(item, col.key)}
- </Column>
- })}
- </Row>
- if(action.id) {
- let index = state.items.findIndex(item => item._id == action.id);
- state.items[index].selected = action.selected;
- }else{
- state.items.map(e=>e.selected = action.selected);
- }
- return {
- ...state,
- items: state.items
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement