|
|
@ -8,17 +8,11 @@ import { getParticipantCount } from '../../../base/participants'; |
|
|
|
import { connect } from '../../../base/redux'; |
|
|
|
import { connect } from '../../../base/redux'; |
|
|
|
import { beginAddPeople } from '../../../invite'; |
|
|
|
import { beginAddPeople } from '../../../invite'; |
|
|
|
import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web'; |
|
|
|
import { isButtonEnabled, isToolboxVisible } from '../../../toolbox/functions.web'; |
|
|
|
import { shouldDisplayTileView } from '../../../video-layout/functions'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
declare var interfaceConfig: Object; |
|
|
|
declare var interfaceConfig: Object; |
|
|
|
|
|
|
|
|
|
|
|
type Props = { |
|
|
|
type Props = { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Whether tile view is enabled. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_tileViewEnabled: Boolean, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Whether to show the option to invite more people |
|
|
|
* Whether to show the option to invite more people |
|
|
|
* instead of the subject. |
|
|
|
* instead of the subject. |
|
|
@ -44,14 +38,13 @@ type Props = { |
|
|
|
* @returns {React$Element<any>} |
|
|
|
* @returns {React$Element<any>} |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
function InviteMore({ |
|
|
|
function InviteMore({ |
|
|
|
_tileViewEnabled, |
|
|
|
|
|
|
|
_visible, |
|
|
|
_visible, |
|
|
|
onClick, |
|
|
|
onClick, |
|
|
|
t |
|
|
|
t |
|
|
|
}: Props) { |
|
|
|
}: Props) { |
|
|
|
return ( |
|
|
|
return ( |
|
|
|
_visible |
|
|
|
_visible |
|
|
|
? <div className = { `invite-more-container${_tileViewEnabled ? ' elevated' : ''}` }> |
|
|
|
? <div className = 'invite-more-container'> |
|
|
|
<div className = 'invite-more-header'> |
|
|
|
<div className = 'invite-more-header'> |
|
|
|
{t('addPeople.inviteMoreHeader')} |
|
|
|
{t('addPeople.inviteMoreHeader')} |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -81,7 +74,6 @@ function mapStateToProps(state) { |
|
|
|
const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER; |
|
|
|
const hide = interfaceConfig.HIDE_INVITE_MORE_HEADER; |
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
return { |
|
|
|
_tileViewEnabled: shouldDisplayTileView(state), |
|
|
|
|
|
|
|
_visible: isToolboxVisible(state) && isButtonEnabled('invite') && isAlone && !hide |
|
|
|
_visible: isToolboxVisible(state) && isButtonEnabled('invite') && isAlone && !hide |
|
|
|
}; |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|