Skip to content

Commit 0fc8a8a

Browse files
committed
expand propTypes for children of Button element to include string
1 parent d6e9556 commit 0fc8a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/common/Button.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ Button.propTypes = {
257257
* The visible part of the button, telling the user what
258258
* the action is
259259
*/
260-
children: PropTypes.element,
260+
children: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),
261261
/**
262262
If the button can be activated or not
263263
*/

0 commit comments

Comments
 (0)