Skip to content

Commit

Permalink
docs(ComposedModal): add a mising prop type (#5942)
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Apr 28, 2020
1 parent 35af873 commit 5569397
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,9 @@ Map {
"closeModal": Object {
"type": "func",
},
"danger": Object {
"type": "bool",
},
"onRequestClose": Object {
"type": "func",
},
Expand Down
6 changes: 6 additions & 0 deletions packages/react/src/components/ComposedModal/ComposedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,12 @@ export class ModalFooter extends Component {
*/
secondaryButtonText: PropTypes.string,

/**
* Specify whether the primary button should be replaced with danger button.
* Note that this prop is not applied if you render primary/danger button by yourself
*/
danger: PropTypes.bool,

/**
* Specify an optional function for when the modal is requesting to be
* closed
Expand Down

0 comments on commit 5569397

Please sign in to comment.