clean up render function

This commit is contained in:
KDSBrowne 2017-04-05 12:43:50 -07:00
parent 47ec0ed4d5
commit a8067b7bd8

View File

@ -12,13 +12,14 @@ export default class ActionsBar extends Component {
super(props);
}
renderCenterBtns() {
render() {
const { isUserPresenter } = this.props;
let centerContent;
if (isUserPresenter || !isUserPresenter) {
centerContent = (
return (
<div className={styles.actionsbar}>
<div className={styles.left}>
<ActionsDropdown {...{isUserPresenter}}/>
</div>
<div className={styles.center}>
<MuteAudioContainer />
<JoinAudioOptionsContainer
@ -29,21 +30,6 @@ export default class ActionsBar extends Component {
{/*<JoinVideo />*/}
<EmojiContainer />
</div>
);
}
return centerContent;
}
render() {
const { isUserPresenter } = this.props;
return (
<div className={styles.actionsbar}>
<div className={styles.left}>
<ActionsDropdown {...{isUserPresenter}}/>
</div>
{this.renderCenterBtns()}
</div>
);
}