[RN] use the share button if the invite button is not enabled

This commit is contained in:
Saúl Ibarra Corretgé 2018-04-25 18:11:26 +02:00 committed by Saúl Ibarra Corretgé
parent f64c13d4b7
commit 1d7e0845aa
1 changed files with 1 additions and 11 deletions

View File

@ -36,16 +36,6 @@ import ToolbarButton from './ToolbarButton';
import { AudioMuteButton, HangupButton, VideoMuteButton } from './buttons';
/**
* The indicator which determines (at bundle time) whether there should be a
* {@code ToolbarButton} in {@code Toolbox} to expose the functionality of the
* feature share-room in the user interface of the app.
*
* @private
* @type {boolean}
*/
const _SHARE_ROOM_TOOLBAR_BUTTON = false;
/**
* The type of {@link Toolbox}'s React {@code Component} props.
*/
@ -273,7 +263,7 @@ class Toolbox extends Component<Props> {
style = { style }
underlayColor = { underlayColor } />
{
_SHARE_ROOM_TOOLBAR_BUTTON && !showInviteButton
!showInviteButton
&& <ToolbarButton
iconName = 'link'
iconStyle = { iconStyle }