make actions button display only for Presenter

This commit is contained in:
KDSBrowne 2017-03-24 07:49:38 -07:00
parent f1ea606432
commit c26965e794
2 changed files with 9 additions and 3 deletions

View File

@ -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>

View File

@ -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>
);