@@ -286,22 +287,18 @@ class ParticipantsPane extends Component
{
);
}
- setSearchString: (string) => void;
-
/**
* Sets the search string.
*
* @param {string} newSearchString - The new search string.
* @returns {void}
*/
- setSearchString(newSearchString) {
+ setSearchString(newSearchString: string) {
this.setState({
searchString: newSearchString
});
}
- _onClosePane: () => void;
-
/**
* Callback for closing the participant pane.
*
@@ -312,8 +309,6 @@ class ParticipantsPane extends Component {
this.props.dispatch(close());
}
- _onDrawerClose: () => void;
-
/**
* Callback for closing the drawer.
*
@@ -326,24 +321,6 @@ class ParticipantsPane extends Component {
});
}
- _onKeyPress: (Object) => void;
-
- /**
- * KeyPress handler for accessibility for closing the participants pane.
- *
- * @param {Object} e - The key event to handle.
- *
- * @returns {void}
- */
- _onKeyPress(e) {
- if (e.key === ' ' || e.key === 'Enter') {
- e.preventDefault();
- this._onClosePane();
- }
- }
-
- _onMuteAll: () => void;
-
/**
* The handler for clicking mute all button.
*
@@ -353,8 +330,6 @@ class ParticipantsPane extends Component {
this.props.dispatch(openDialog(MuteEveryoneDialog));
}
- _onToggleContext: () => void;
-
/**
* Handler for toggling open/close of the footer context menu.
*
@@ -366,15 +341,13 @@ class ParticipantsPane extends Component {
});
}
- _onWindowClickListener: (event: Object) => void;
-
/**
* Window click event listener.
*
* @param {Event} e - The click event.
* @returns {void}
*/
- _onWindowClickListener(e) {
+ _onWindowClickListener(e: any) {
if (this.state.contextOpen && !findAncestorByClass(e.target, this.props.classes.footerMoreContainer)) {
this.setState({
contextOpen: false
@@ -393,7 +366,7 @@ class ParticipantsPane extends Component {
* @protected
* @returns {Props}
*/
-function _mapStateToProps(state: Object) {
+function _mapStateToProps(state: IState) {
const isPaneOpen = getParticipantsPaneOpen(state);
const { conference } = state['features/base/conference'];
const _isBreakoutRoomsSupported = conference?.getBreakoutRooms()?.isSupported();
@@ -408,4 +381,5 @@ function _mapStateToProps(state: Object) {
};
}
+// @ts-ignore
export default translate(connect(_mapStateToProps)(withStyles(styles)(ParticipantsPane)));