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-03-28 22:02:23 +08:00
|
|
|
<Button
|
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}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
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);
|