feat(mobile) adds feature flags for audioMute, videoMute and overflow… (#8537)

This commit is contained in:
tmoldovan8x8
2021-02-04 15:32:09 +02:00
committed by GitHub
parent b69e93a900
commit dca96f25f3
4 changed files with 44 additions and 4 deletions

View File

@@ -1,6 +1,7 @@
// @flow
import { openDialog } from '../../../base/dialog';
import { getFeatureFlag, OVERFLOW_MENU_ENABLED } from '../../../base/flags';
import { translate } from '../../../base/i18n';
import { IconMenuThumb } from '../../../base/icons';
import { connect } from '../../../base/redux';
@@ -38,4 +39,20 @@ class OverflowMenuButton extends AbstractButton<Props, *> {
}
}
export default translate(connect()(OverflowMenuButton));
/**
* Maps (parts of) the redux state to the associated props for the
* {@code OverflowMenuButton} component.
*
* @param {Object} state - The Redux state.
* @private
* @returns {Props}
*/
function _mapStateToProps(state): Object {
const enabledFlag = getFeatureFlag(state, OVERFLOW_MENU_ENABLED, true);
return {
visible: enabledFlag
};
}
export default translate(connect(_mapStateToProps)(OverflowMenuButton));