Skip to content

Commit

Permalink
Merge pull request #34 from orchestrated-io/1107-fix-proptypes-issue
Browse files Browse the repository at this point in the history
fix: update Dialogue proptypes for children
  • Loading branch information
shomukai authored Nov 6, 2019
2 parents 91ab9de + 51044d0 commit 9136217
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/components/Dialogue/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ class Dialogue extends React.Component {
}

Dialogue.propTypes = {
children: PropTypes.element,
children: PropTypes.oneOfType([
PropTypes.node,
PropTypes.arrayOf(PropTypes.node)
]),
/** Specifies the width of the Dialogue in pixels */
width: PropTypes.string,
/** Specifies the text for the button that triggers the dialogue */
Expand Down

0 comments on commit 9136217

Please sign in to comment.