2016-10-12 03:10:06 +08:00
|
|
|
import React from 'react';
|
|
|
|
import Button from '/imports/ui/components/button/component';
|
|
|
|
import { clearModal } from '/imports/ui/components/app/service';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import styles from '../styles.scss';
|
|
|
|
|
|
|
|
export default class JoinAudio extends React.Component {
|
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
this.handleClose = this.handleClose.bind(this);
|
2016-10-13 03:55:02 +08:00
|
|
|
this.openAudio = this.openAudio.bind(this);
|
|
|
|
this.openListen = this.openListen.bind(this);
|
2016-10-12 03:10:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
handleClose() {
|
|
|
|
this.setState({ isOpen: false });
|
|
|
|
clearModal();
|
2016-10-13 03:55:02 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
openAudio() {
|
|
|
|
this.props.changeMenu(this.props.JOIN_AUDIO);
|
|
|
|
}
|
2016-10-12 03:10:06 +08:00
|
|
|
|
2016-10-13 03:55:02 +08:00
|
|
|
openListen() {
|
|
|
|
this.props.changeMenu(this.props.ECHO_TEST);
|
2016-10-12 03:10:06 +08:00
|
|
|
}
|
|
|
|
|
2016-10-13 03:55:02 +08:00
|
|
|
|
|
|
|
|
2016-10-12 03:10:06 +08:00
|
|
|
render() {
|
|
|
|
return (
|
2016-10-13 03:55:02 +08:00
|
|
|
<div>
|
|
|
|
<div className={styles.center}>
|
|
|
|
<Button className={styles.closeBtn}
|
|
|
|
label={'Close'}
|
|
|
|
icon={'close'}
|
|
|
|
size={'lg'}
|
|
|
|
circle={true}
|
|
|
|
hideLabel={true}
|
|
|
|
onClick={this.handleClose}
|
|
|
|
/>
|
|
|
|
<div>
|
|
|
|
How would you like to join the audio?
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={styles.center}>
|
|
|
|
<Button className={styles.audioBtn}
|
|
|
|
label={'Audio'}
|
|
|
|
icon={'audio'}
|
|
|
|
circle={true}
|
|
|
|
size={'jumbo'}
|
|
|
|
onClick={this.openAudio}
|
|
|
|
/>
|
|
|
|
<Button className={styles.audioBtn}
|
|
|
|
label={'Listen Only'}
|
|
|
|
icon={'listen'}
|
|
|
|
circle={true}
|
|
|
|
size={'jumbo'}
|
|
|
|
onClick={this.openListen}
|
|
|
|
/>
|
2016-10-12 03:10:06 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|