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';
|
|
|
|
|
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 (
|
2017-09-07 03:36:52 +08:00
|
|
|
<Button
|
|
|
|
label={intl.formatMessage(intlMessages.enterSessionLabel)}
|
|
|
|
size={'md'}
|
|
|
|
color={'primary'}
|
|
|
|
onClick={this.props.handleJoin}
|
|
|
|
/>
|
2016-12-10 04:39:48 +08:00
|
|
|
);
|
|
|
|
}
|
2017-06-03 03:25:02 +08:00
|
|
|
}
|
2017-02-17 06:14:10 +08:00
|
|
|
|
|
|
|
const intlMessages = defineMessages({
|
|
|
|
enterSessionLabel: {
|
|
|
|
id: 'app.audio.enterSessionLabel',
|
2017-04-10 23:50:03 +08:00
|
|
|
description: 'enter session button label',
|
2017-02-17 06:14:10 +08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default injectIntl(EnterAudio);
|