mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 17:17:47 +00:00
feat(toolbar-button-clicked) Enhance toolbar buttons with notify click
- add possibility to allow execution of the button's routine besides triggering `toolbarButtonClicked` API event - keep backwards compatibility - get rid of `ToolbarButton`
This commit is contained in:
@@ -23,14 +23,6 @@ export default class AbstractAudioMuteButton<P: Props, S: *>
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
const { handleClick } = this.props;
|
||||
|
||||
if (handleClick) {
|
||||
handleClick();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this._setAudioMuted(!this._isAudioMuted());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user