make actions button display only for Presenter
This commit is contained in:
parent
f1ea606432
commit
c26965e794
@ -50,7 +50,10 @@ class ActionsDropdown extends Component {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { intl } = this.props;
|
||||
const { intl, isUserPresenter } = this.props;
|
||||
|
||||
if (!isUserPresenter) return null;
|
||||
|
||||
return (
|
||||
<Dropdown ref="dropdown">
|
||||
<DropdownTrigger>
|
||||
|
@ -13,10 +13,13 @@ export default class ActionsBar extends Component {
|
||||
}
|
||||
|
||||
renderForPresenter() {
|
||||
|
||||
const { isUserPresenter } = this.props;
|
||||
|
||||
return (
|
||||
<div className={styles.actionsbar}>
|
||||
<div className={styles.left}>
|
||||
<ActionsDropdown />
|
||||
<ActionsDropdown {...isUserPresenter}/>
|
||||
</div>
|
||||
<div className={styles.center}>
|
||||
<MuteAudioContainer />
|
||||
@ -29,7 +32,7 @@ export default class ActionsBar extends Component {
|
||||
<EmojiContainer />
|
||||
</div>
|
||||
<div className={styles.hidden}>
|
||||
<ActionsDropdown />
|
||||
<ActionsDropdown {...isUserPresenter}/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user