Skip to content
This repository has been archived by the owner on Jun 28, 2021. It is now read-only.

Commit

Permalink
allow strings and nodes for error proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregoor committed Jan 6, 2016
1 parent 75e28ee commit d892c43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Textfield.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class Textfield extends React.Component {
static propTypes = {
className: PropTypes.string,
disabled: PropTypes.bool,
error: PropTypes.object,
error: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
expandable: PropTypes.bool,
expandableIcon: PropTypes.string,
floatingLabel: PropTypes.bool,
Expand Down

0 comments on commit d892c43

Please sign in to comment.