Skip to content

Commit

Permalink
fix(Modal): add missing typings (#1274)
Browse files Browse the repository at this point in the history
  • Loading branch information
levithomason committed Feb 2, 2017
1 parent 5026979 commit fa746f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class Modal extends Component {
/** An element type to render as (string or function). */
as: customPropTypes.as,

/** A modal can reduce its complexity */
basic: PropTypes.bool,

/** Primary content. */
children: PropTypes.node,

Expand All @@ -62,9 +65,6 @@ class Modal extends Component {
/** Whether or not the Modal should close when the document is clicked. */
closeOnDocumentClick: PropTypes.bool,

/** A modal can reduce its complexity */
basic: PropTypes.bool,

/** Initial value of open. */
defaultOpen: PropTypes.bool,

Expand Down
8 changes: 8 additions & 0 deletions src/modules/Modal/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ interface ModalProps {
/** Icon */
closeIcon?:any;

/**
* Whether or not the Modal should close when the dimmer is clicked.
*/
closeOnDimmerClick?: boolean,

/** Whether or not the Modal should close when the document is clicked. */
closeOnDocumentClick?: boolean,

/** Initial value of open. */
defaultOpen?:boolean;

Expand Down

0 comments on commit fa746f8

Please sign in to comment.