Skip to content

Commit

Permalink
Merge pull request #414 from harshaktg/master
Browse files Browse the repository at this point in the history
Required laneId during on AddCardLink
  • Loading branch information
rcdexta authored Jan 30, 2021
2 parents e5f32bf + ce56e0a commit 5c69e86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/AddCardLink.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from 'react'
import {AddCardLink} from 'rt/styles/Base'

export default ({onClick, t}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>
export default ({onClick, t, laneId}) => <AddCardLink onClick={onClick}>{t('Click to add card')}</AddCardLink>
4 changes: 2 additions & 2 deletions src/controllers/Lane.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ class Lane extends Component {
getChildPayload={index => this.props.getCardDetails(id, index)}>
{cardList}
</Container>
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} />}
{editable && !addCardMode && <components.AddCardLink onClick={this.showEditableCard} t={t} laneId={id} />}
{addCardMode && (
<components.NewCardForm onCancel={this.hideEditableCard} t={t} laneId={id} onAdd={this.addNewCard} />
)}
Expand All @@ -225,7 +225,7 @@ class Lane extends Component {
this.props.onLaneUpdate(this.props.id, {title: value})
}

renderHeader = (pickedProps) => {
renderHeader = pickedProps => {
const {components} = this.props
return (
<components.LaneHeader
Expand Down

0 comments on commit 5c69e86

Please sign in to comment.