Skip to content

Commit ce56e0a

Browse files
author
Harsha
committed
[FEAT] Required laneId while on AddCardLink
1 parent eed32da commit ce56e0a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/components/AddCardLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
import React from 'react'
22
import {AddCardLink} from 'rt/styles/Base'
33

4-
export default ({onClick, t}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>
4+
export default ({onClick, t, laneId}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>

src/controllers/Lane.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ class Lane extends Component {
198198
getChildPayload={index => this.props.getCardDetails(id, index)}>
199199
{cardList}
200200
</Container>
201-
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} />}
201+
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} laneId={id} />}
202202
{addCardMode && (
203203
<components.NewCardForm onCancel={this.hideEditableCard} t={t} laneId={id} onAdd={this.addNewCard} />
204204
)}
@@ -217,7 +217,7 @@ class Lane extends Component {
217217
this.props.onLaneUpdate(this.props.id, {title: value})
218218
}
219219

220-
renderHeader = (pickedProps) => {
220+
renderHeader = pickedProps => {
221221
const {components} = this.props
222222
return (
223223
<components.LaneHeader

0 commit comments

Comments
 (0)