Skip to content

Commit

Permalink
fix(Modal): fix closeIcon type
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Aug 27, 2017
1 parent 5ed7d64 commit 36b7136
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/modules/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ class Modal extends Component {
className: PropTypes.string,

/** Shorthand for the close icon. Closes the modal on click. */
closeIcon: customPropTypes.itemShorthand,
closeIcon: PropTypes.oneOfType([
PropTypes.node,
PropTypes.object,
PropTypes.bool,
]),

/** Whether or not the Modal should close when the dimmer is clicked. */
closeOnDimmerClick: PropTypes.bool,
Expand Down

0 comments on commit 36b7136

Please sign in to comment.