mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 23:17:48 +00:00
task(rn): hide screen share button when audioOnly mode
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import { Platform } from 'react-native';
|
||||
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import ScreenSharingAndroidButton from './ScreenSharingAndroidButton.js';
|
||||
import ScreenSharingIosButton from './ScreenSharingIosButton.js';
|
||||
|
||||
@@ -15,4 +19,22 @@ const ScreenSharingButton = props => (
|
||||
</>
|
||||
);
|
||||
|
||||
export default ScreenSharingButton;
|
||||
/**
|
||||
* Maps (parts of) the redux state to the associated props for the
|
||||
* {@code ScreenSharingButton} component.
|
||||
*
|
||||
* @param {Object} state - The Redux state.
|
||||
* @private
|
||||
* @returns {{
|
||||
* _disabled: boolean,
|
||||
* }}
|
||||
*/
|
||||
function _mapStateToProps(state): Object {
|
||||
const disabled = state['features/base/audio-only'].enabled;
|
||||
|
||||
return {
|
||||
_disabled: disabled
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(_mapStateToProps)(ScreenSharingButton);
|
||||
|
||||
Reference in New Issue
Block a user