Skip to content

Commit

Permalink
docs(Modal): update secondaryButtons definition
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed Feb 16, 2021
1 parent b8510c2 commit 58713ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/react/src/components/ComposedModal/ComposedModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,10 @@ export class ModalFooter extends Component {

/**
* Specify an array of config objects for secondary buttons
* (`Array<{
* buttonText: string,
* onClick: function,
* }>`).
*/
secondaryButtons: (props, propName, componentName) => {
if (props.secondaryButtons) {
Expand Down
4 changes: 4 additions & 0 deletions packages/react/src/components/Modal/Modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,10 @@ export default class Modal extends Component {

/**
* Specify an array of config objects for secondary buttons
* (`Array<{
* buttonText: string,
* onClick: function,
* }>`).
*/
secondaryButtons: (props, propName, componentName) => {
if (props.secondaryButtons) {
Expand Down

0 comments on commit 58713ff

Please sign in to comment.