Skip to content

Commit

Permalink
Reversing changes pointed by:
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulCombal authored and rcdexta committed Feb 11, 2019
1 parent 613782c commit ab18227
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/components/BoardContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class BoardContainer extends Component {

render() {
const {id, reducerData, draggable, laneDraggable, laneDragClass, style, onDataChange, onLaneScroll, onCardClick, onLaneClick, onCardDelete, onCardAdd, addLaneTitle, editable, canAddLanes, ...otherProps} = this.props
const {addLaneMode} = this.state
// Stick to whitelisting attributes to segregate board and lane props
const passthroughProps = pick(this.props, [
'onLaneScroll',
Expand Down Expand Up @@ -174,6 +175,17 @@ class BoardContainer extends Component {
return draggable && laneDraggable ? <Draggable key={lane.id}>{laneToRender}</Draggable> : <span key={lane.id}>{laneToRender}</span>
})}
</Container>
{canAddLanes && (
<Container orientation="horizontal">
{editable && !addLaneMode ? (
<LaneSection style={{width: 200}}>
<NewLaneButton onClick={this.showEditableLane}>{addLaneTitle}</NewLaneButton>
</LaneSection>
) : (
addLaneMode && this.renderNewLane()
)}
</Container>
)}
</BoardDiv>
)
}
Expand Down

0 comments on commit ab18227

Please sign in to comment.