File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Individual nodes within the `nodes` property can have the following structure:
110
110
111
111
| Property | Type | Description |
112
112
| ----------- | ------ | ------------------------------- |
113
- | ` label ` | string | ** Required** . The node's label. |
113
+ | ` label ` | mixed | ** Required** . The node's label. |
114
114
| ` value ` | mixed | ** Required** . The node's value. |
115
115
| ` children ` | array | An array of child nodes. |
116
116
| ` className ` | string | A className to add to the node. |
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class TreeNode extends React.Component {
10
10
disabled : PropTypes . bool . isRequired ,
11
11
expandDisabled : PropTypes . bool . isRequired ,
12
12
expanded : PropTypes . bool . isRequired ,
13
- label : PropTypes . string . isRequired ,
13
+ label : PropTypes . node . isRequired ,
14
14
optimisticToggle : PropTypes . bool . isRequired ,
15
15
showNodeIcon : PropTypes . bool . isRequired ,
16
16
treeId : PropTypes . string . isRequired ,
Original file line number Diff line number Diff line change 1
1
import PropTypes from 'prop-types' ;
2
2
3
3
const nodeShape = {
4
- label : PropTypes . string . isRequired ,
4
+ label : PropTypes . node . isRequired ,
5
5
value : PropTypes . oneOfType ( [
6
6
PropTypes . string ,
7
7
PropTypes . number ,
You can’t perform that action at this time.
0 commit comments