Skip to content

Commit 4c61ceb

Browse files
authored
Merge pull request #1499 from interactivellama/tree-label-node
Tree: Allow label to be a React node
2 parents 54a53ed + b307a82 commit 4c61ceb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/tree/index.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ const propTypes = {
7676
PropTypes.shape({
7777
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string])
7878
.isRequired,
79-
label: PropTypes.string.isRequired,
79+
label: PropTypes.oneOfType([PropTypes.node, PropTypes.string])
80+
.isRequired,
8081
type: PropTypes.string.isRequired,
8182
}),
8283
])

0 commit comments

Comments
 (0)