Skip to content

Commit 9e8bb4a

Browse files
committed
Tweak variable name and add comments
1 parent 0b97b90 commit 9e8bb4a

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/index.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
import SortableTree, { UnwrappedSortableTree } from './react-sortable-tree';
1+
import SortableTree, { SortableTreeWithoutDndContext } from './react-sortable-tree';
22

33
export * from './utils/default-handlers';
44
export * from './utils/tree-data-utils';
5-
export { UnwrappedSortableTree };
65
export default SortableTree;
6+
7+
// Export the tree component without the react-dnd DragDropContext,
8+
// for when component is used with other components using react-dnd.
9+
// see: https://github.com/gaearon/react-dnd/issues/186
10+
export { SortableTreeWithoutDndContext };

src/react-sortable-tree.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,9 @@ ReactSortableTree.defaultProps = {
545545
isVirtualized: true,
546546
};
547547

548-
export { ReactSortableTree as UnwrappedSortableTree };
548+
// Export the tree component without the react-dnd DragDropContext,
549+
// for when component is used with other components using react-dnd.
550+
// see: https://github.com/gaearon/react-dnd/issues/186
551+
export { ReactSortableTree as SortableTreeWithoutDndContext };
549552

550553
export default dndWrapRoot(ReactSortableTree);

0 commit comments

Comments
 (0)