Skip to content

Commit

Permalink
fix(CoachmarkStack): make onClose optional
Browse files Browse the repository at this point in the history
  • Loading branch information
emyarod committed May 15, 2024
1 parent ea22b93 commit 1a208ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ interface CoachmarkStackProps {
/**
* Function to call when the CoachmarkStack closes.
*/
onClose: () => void;
onClose?: () => void;
/**
* Where in the DOM to render the stack.
* The default is `document.body`.
Expand Down Expand Up @@ -390,7 +390,7 @@ CoachmarkStack.propTypes = {
/**
* Function to call when the CoachmarkStack closes.
*/
onClose: PropTypes.func.isRequired,
onClose: PropTypes.func,

/**
* Where in the DOM to render the stack.
Expand Down

0 comments on commit 1a208ca

Please sign in to comment.