Skip to content

Commit 7a324e2

Browse files
committed
fix: Upgraded react-smooth-dnd to 0.4.4 and freeze version to avoid breaking changes
1 parent d08a88f commit 7a324e2

4 files changed

Lines changed: 10 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"lodash": "^4.17.4",
4444
"prop-types": "^15.6.0",
4545
"react-redux": "^5.0.3",
46-
"react-smooth-dnd": "^0.3.7",
46+
"react-smooth-dnd": "0.4.4",
4747
"redux": "^3.6.0",
4848
"redux-actions": "^1.2.2",
4949
"redux-logger": "^3.0.6",

src/components/BoardContainer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class BoardContainer extends Component {
6262
return this.props.reducerData.lanes.find(lane => lane.id === laneId).cards[cardIndex]
6363
}
6464

65-
onDragStart = (index, payload) => {
65+
onDragStart = ({payload}) => {
6666
const {handleLaneDragStart} = this.props
6767
handleLaneDragStart(payload.id)
6868
}

src/components/Lane.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Lane extends Component {
119119
}
120120
}
121121

122-
onDragStart = (index, payload) => {
122+
onDragStart = ({payload}) => {
123123
const {handleDragStart} = this.props
124124
handleDragStart && handleDragStart(payload.id, payload.laneId)
125125
}

yarn.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7188,11 +7188,11 @@ react-simple-di@^1.2.0:
71887188
babel-runtime "6.x.x"
71897189
hoist-non-react-statics "1.x.x"
71907190

7191-
react-smooth-dnd@^0.3.7:
7192-
version "0.3.7"
7193-
resolved "https://registry.yarnpkg.com/react-smooth-dnd/-/react-smooth-dnd-0.3.7.tgz#0f121d98723fb7bc60d50552a8335831885801ca"
7191+
react-smooth-dnd@0.4.4:
7192+
version "0.4.4"
7193+
resolved "https://registry.yarnpkg.com/react-smooth-dnd/-/react-smooth-dnd-0.4.4.tgz#65a852aa85c267d68da840990ab63442d036b92c"
71947194
dependencies:
7195-
smooth-dnd "^0.4.0"
7195+
smooth-dnd "^0.4.8"
71967196

71977197
react-split-pane@^0.1.65:
71987198
version "0.1.66"
@@ -7984,9 +7984,9 @@ slide@^1.1.3, slide@^1.1.5:
79847984
version "1.1.6"
79857985
resolved "https://registry.yarnpkg.com/slide/-/slide-1.1.6.tgz#56eb027d65b4d2dce6cb2e2d32c4d4afc9e1d707"
79867986

7987-
smooth-dnd@^0.4.0:
7988-
version "0.4.0"
7989-
resolved "https://registry.yarnpkg.com/smooth-dnd/-/smooth-dnd-0.4.0.tgz#1d3be9d0001310104facb30eb889fbb4dac5fb1c"
7987+
smooth-dnd@^0.4.8:
7988+
version "0.4.8"
7989+
resolved "https://registry.yarnpkg.com/smooth-dnd/-/smooth-dnd-0.4.8.tgz#643204f5fa2045d5d150c51b812a4f32f0248ab0"
79907990

79917991
sntp@0.2.x:
79927992
version "0.2.4"

0 commit comments

Comments
 (0)