Skip to content

Commit

Permalink
Fixes #969 - Adds the close method to ClayStripe and ClayToast
Browse files Browse the repository at this point in the history
  • Loading branch information
matuzalemsteles committed Dec 6, 2018
1 parent 0f3d467 commit 4b54f76
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/clay-alert/src/ClayStripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class ClayStripe extends Component {
_handleHide() {
return !this.emit('hide');
}

/**
* Emits hide alert.
* @public
*/
close() {
this.emit('hide');
}
}

/**
Expand Down
8 changes: 8 additions & 0 deletions packages/clay-alert/src/ClayToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ class ClayToast extends Component {
_handleHide() {
return !this.emit('hide');
}

/**
* Emits hide alert.
* @public
*/
close() {
this.emit('hide');
}
}

/**
Expand Down

0 comments on commit 4b54f76

Please sign in to comment.