Skip to content

Commit 3803c24

Browse files
committed
fix(demo): restore toggling between node rendering types
1 parent f749d43 commit 3803c24

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

demo/src/App.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -586,11 +586,11 @@ class App extends Component {
586586
<div ref={tc => (this.treeContainer = tc)} className="tree-container">
587587
<Tree
588588
data={this.state.data}
589-
// renderCustomNodeElement={
590-
// this.state.renderCustomNodeElement
591-
// ? rd3tProps => this.state.renderCustomNodeElement(rd3tProps, this.state)
592-
// : undefined
593-
// }
589+
renderCustomNodeElement={
590+
this.state.renderCustomNodeElement
591+
? rd3tProps => this.state.renderCustomNodeElement(rd3tProps, this.state)
592+
: undefined
593+
}
594594
rootNodeClassName="demo-node"
595595
branchNodeClassName="demo-node"
596596
orientation={this.state.orientation}

0 commit comments

Comments
 (0)