mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-07-23 23:57:48 +00:00
feat(mobile) adds feature flags for audioMute, videoMute and overflow… (#8537)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user