@@ -116,7 +116,7 @@ class Lane extends Component {
116116 } )
117117 return < span > { newCardWithProps } </ span >
118118 } else {
119- return < NewCard onCancel = { this . hideEditableCard } onAdd = { this . addNewCard } />
119+ return < NewCard onCancel = { this . hideEditableCard } onAdd = { this . addNewCard } />
120120 }
121121 }
122122
@@ -129,7 +129,7 @@ class Lane extends Component {
129129 return this . props . droppable && sourceContainerOptions . groupName === this . groupName
130130 }
131131
132- get groupName ( ) {
132+ get groupName ( ) {
133133 const { boardId} = this . props
134134 return `TrelloBoard${ boardId } Lane`
135135 }
@@ -149,18 +149,7 @@ class Lane extends Component {
149149 }
150150
151151 renderDragContainer = isDraggingOver => {
152- const {
153- laneSortFunction,
154- editable,
155- hideCardDeleteIcon,
156- tagStyle,
157- cardStyle,
158- draggable,
159- cardDraggable,
160- cards,
161- cardDragClass,
162- id
163- } = this . props
152+ const { laneSortFunction, editable, hideCardDeleteIcon, tagStyle, cardStyle, draggable, cardDraggable, cards, cardDragClass, id} = this . props
164153 const { addCardMode, collapsed} = this . state
165154
166155 const showableCards = collapsed ? [ ] : cards
@@ -182,15 +171,11 @@ class Lane extends Component {
182171 { ...card }
183172 />
184173 )
185- return draggable && cardDraggable ? (
186- < Draggable key = { card . id } > { cardToRender } </ Draggable >
187- ) : (
188- < span key = { card . id } > { cardToRender } </ span >
189- )
174+ return draggable && cardDraggable ? < Draggable key = { card . id } > { cardToRender } </ Draggable > : < span key = { card . id } > { cardToRender } </ span >
190175 } )
191176
192177 return (
193- < ScrollableLane innerRef = { this . laneDidMount } isDraggingOver = { isDraggingOver } >
178+ < ScrollableLane ref = { this . laneDidMount } isDraggingOver = { isDraggingOver } >
194179 < Container
195180 orientation = "vertical"
196181 groupName = { this . groupName }
@@ -243,7 +228,7 @@ class Lane extends Component {
243228
244229 render ( ) {
245230 const { loading, isDraggingOver} = this . state
246- const { id, onLaneClick, ...otherProps } = this . props
231+ const { id, onLaneClick, onCardAdd , ...otherProps } = this . props
247232 return (
248233 < Section { ...otherProps } key = { id } onClick = { ( ) => onLaneClick && onLaneClick ( id ) } draggable = { false } className = "react-trello-lane" >
249234 { this . renderHeader ( ) }
@@ -302,4 +287,7 @@ const mapDispatchToProps = dispatch => ({
302287 actions : bindActionCreators ( laneActions , dispatch )
303288} )
304289
305- export default connect ( null , mapDispatchToProps ) ( Lane )
290+ export default connect (
291+ null ,
292+ mapDispatchToProps
293+ ) ( Lane )
0 commit comments