Skip to content

Commit 123f28c

Browse files
committed
Merge branch 'patch-3' of https://github.com/thorjarhun/react-trello into thorjarhun-patch-3
2 parents e5fb745 + 7e88d8d commit 123f28c

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/components/Lane.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,19 +60,6 @@ class Lane extends Component {
6060
}
6161
}
6262

63-
moveCard = (dragIndex, hoverIndex) => {
64-
const {cards} = this.state
65-
const dragCard = cards[dragIndex]
66-
67-
this.setState(
68-
update(this.state, {
69-
cards: {
70-
$splice: [[dragIndex, 1], [hoverIndex, 0, dragCard]]
71-
}
72-
})
73-
)
74-
}
75-
7663
componentWillReceiveProps(nextProps) {
7764
if (!isEqual(this.props.cards, nextProps.cards)) {
7865
this.setState({
@@ -147,7 +134,6 @@ class Lane extends Component {
147134
customCard={this.props.children}
148135
tagStyle={tagStyle}
149136
cardStyle={cardStyle}
150-
moveCard={this.moveCard}
151137
removeCard={this.removeCard}
152138
onClick={e => this.handleCardClick(e, card)}
153139
onDelete={this.props.onCardDelete}

0 commit comments

Comments
 (0)