fix(prejoin) hide skip prejoin for exposed app
This commit is contained in:
parent
1ae5630590
commit
f6433668d5
|
@ -105,6 +105,11 @@ type Props = {
|
|||
*/
|
||||
showDialog: boolean,
|
||||
|
||||
/**
|
||||
* Flag signaling the visibility of the skip prejoin toggle
|
||||
*/
|
||||
showSkipPrejoin: boolean,
|
||||
|
||||
/**
|
||||
* Used for translation.
|
||||
*/
|
||||
|
@ -134,7 +139,8 @@ class Prejoin extends Component<Props, State> {
|
|||
* @static
|
||||
*/
|
||||
static defaultProps = {
|
||||
showJoinActions: true
|
||||
showJoinActions: true,
|
||||
showSkipPrejoin: true
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -339,7 +345,11 @@ class Prejoin extends Component<Props, State> {
|
|||
* @returns {React$Element}
|
||||
*/
|
||||
_renderSkipPrejoinButton() {
|
||||
const { buttonIsToggled, t } = this.props;
|
||||
const { buttonIsToggled, t, showSkipPrejoin } = this.props;
|
||||
|
||||
if (!showSkipPrejoin) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className = 'prejoin-checkbox-container'>
|
||||
|
|
|
@ -21,6 +21,11 @@ type Props = {
|
|||
* Flag signaling the visibility of join label, input and buttons
|
||||
*/
|
||||
showJoinActions: boolean,
|
||||
|
||||
/**
|
||||
* Flag signaling the visibility of the skip prejoin toggle
|
||||
*/
|
||||
showSkipPrejoin: boolean,
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -42,13 +47,14 @@ export default class PrejoinApp extends BaseApp<Props> {
|
|||
this._init.then(async () => {
|
||||
const { store } = this.state;
|
||||
const { dispatch } = store;
|
||||
const { showAvatar, showJoinActions } = this.props;
|
||||
const { showAvatar, showJoinActions, showSkipPrejoin } = this.props;
|
||||
|
||||
super._navigate({
|
||||
component: Prejoin,
|
||||
props: {
|
||||
showAvatar,
|
||||
showJoinActions
|
||||
showJoinActions,
|
||||
showSkipPrejoin
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue