feat(toolbar-buttons): Add event for notify overwritten toolbar buttons

This commit is contained in:
Horatiu Muresan
2021-09-14 10:07:20 +03:00
committed by GitHub
parent aadbe59d00
commit 1add438a1f
38 changed files with 380 additions and 74 deletions

View File

@@ -12,11 +12,6 @@ type Props = AbstractButtonProps & {
* Whether or not the local participant's hand is raised.
*/
_raisedHand: boolean,
/**
* External handler for click action.
*/
handleClick: Function
};
/**
@@ -51,7 +46,13 @@ class RaiseHandButton extends AbstractButton<Props, *> {
* @returns {void}
*/
_handleClick() {
this.props.handleClick();
const { handleClick } = this.props;
if (handleClick) {
handleClick();
return;
}
}
/**