Skip to content

Commit

Permalink
fix: silence warning on latest react-sortable-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
fritz-c committed Nov 28, 2017
1 parent b69bc16 commit 7c81d55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions node-content-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class FileThemeNodeContentRenderer extends Component {
swapFrom,
swapLength,
swapDepth,
treeId, // Not needed, but preserved for other renderers
isOver, // Not needed, but preserved for other renderers
parentNode, // Needed for dndManager
...otherProps
Expand Down Expand Up @@ -230,6 +231,7 @@ FileThemeNodeContentRenderer.propTypes = {
title: PropTypes.oneOfType([PropTypes.func, PropTypes.node]),
toggleChildrenVisibility: PropTypes.func,
treeIndex: PropTypes.number.isRequired,
treeId: PropTypes.string.isRequired,

// Drag and drop API functions
// Drag source
Expand Down
2 changes: 2 additions & 0 deletions tree-node-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class FileThemeTreeNodeRenderer extends Component {
draggedNode,
canDrop,
treeIndex,
treeId, // Delete from otherProps
getPrevRow, // Delete from otherProps
node, // Delete from otherProps
path, // Delete from otherProps
Expand Down Expand Up @@ -52,6 +53,7 @@ FileThemeTreeNodeRenderer.defaultProps = {

FileThemeTreeNodeRenderer.propTypes = {
treeIndex: PropTypes.number.isRequired,
treeId: PropTypes.string.isRequired,
swapFrom: PropTypes.number,
swapDepth: PropTypes.number,
swapLength: PropTypes.number,
Expand Down

0 comments on commit 7c81d55

Please sign in to comment.