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 22, 2024
1 parent d41097a commit bd93f95
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 bd93f95

Please sign in to comment.