2016-12-10 04:39:48 +08:00
|
|
|
import React from 'react';
|
2017-02-17 06:14:10 +08:00
|
|
|
import { defineMessages, injectIntl } from 'react-intl';
|
2016-12-10 04:39:48 +08:00
|
|
|
import Button from '/imports/ui/components/button/component';
|
|
|
|
import styles from '../settings/styles.scss';
|
|
|
|
|
2017-02-17 06:14:10 +08:00
|
|
|
class EnterAudio extends React.Component {
|
2016-12-10 04:39:48 +08:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
2017-02-17 06:14:10 +08:00
|
|
|
const {
|
|
|
|
intl,
|
|
|
|
} = this.props;
|
|
|
|
|
2016-12-10 04:39:48 +08:00
|
|
|
return (
|
|
|
|
<div className={styles.half}>
|
|
|
|
<Button className={styles.enterBtn}
|
2017-02-17 06:14:10 +08:00
|
|
|
label={intl.formatMessage(intlMessages.enterSessionLabel)}
|
2016-12-10 04:39:48 +08:00
|
|
|
size={'md'}
|
|
|
|
color={'primary'}
|
|
|
|
onClick={this.props.handleJoin}
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
};
|
2017-02-17 06:14:10 +08:00
|
|
|
|
|
|
|
const intlMessages = defineMessages({
|
|
|
|
enterSessionLabel: {
|
|
|
|
id: 'app.audio.enterSessionLabel',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default injectIntl(EnterAudio);
|