Skip to content

Commit

Permalink
Added proptype Proptypes.node to FormSection's component propTypes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
anu1097 authored and erikras committed Apr 24, 2018
1 parent 15d52bd commit 432e4b9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/FormSection.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ class FormSection extends Component<Props> {

FormSection.propTypes = {
name: PropTypes.string.isRequired,
component: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
component: PropTypes.oneOfType([
PropTypes.func,
PropTypes.string,
PropTypes.node
])
}

FormSection.defaultProps = {
Expand Down

0 comments on commit 432e4b9

Please sign in to comment.