1
0
mirror of https://github.com/ascribe/onion.git synced 2024-06-26 03:06:28 +02:00

Fix PropTypes for GenericButton

This commit is contained in:
vrde 2015-09-17 17:00:25 +02:00
parent 1f3559d83b
commit 4f69f78bcd

View File

@ -22,7 +22,8 @@ function ButtonFactory(style, btnClassName, options) {
onClick: React.PropTypes.func,
status: React.PropTypes.oneOf(['loading', 'disabled', null]),
children: React.PropTypes.oneOfType([React.PropTypes.arrayOf(React.PropTypes.element),
React.PropTypes.element])
React.PropTypes.element,
React.PropTypes.string])
},
render: function render() {