Skip to content

Commit

Permalink
fix(bar): Allow BarItem label property to accept React.Element
Browse files Browse the repository at this point in the history
  • Loading branch information
germanfleitas authored and Raphaël Benitte committed Dec 23, 2018
1 parent 3d01b42 commit 48c8e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bar/src/BarItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ BarItem.propTypes = {
borderWidth: PropTypes.number.isRequired,
borderColor: PropTypes.string.isRequired,

label: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
label: PropTypes.node.isRequired,
shouldRenderLabel: PropTypes.bool.isRequired,
labelColor: PropTypes.string.isRequired,

Expand Down

0 comments on commit 48c8e41

Please sign in to comment.