bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/audio-test/component.jsx

35 lines
790 B
React
Raw Normal View History

2017-03-02 09:03:02 +08:00
import React from 'react';
import Button from '/imports/ui/components/button/component';
import styles from '../settings/styles.scss';
import { defineMessages, injectIntl } from 'react-intl';
class AudioTest extends React.Component {
constructor(props) {
2016-12-06 00:21:55 +08:00
super(props);
}
render() {
2017-02-17 03:47:12 +08:00
const {
intl,
} = this.props;
2016-12-06 09:37:46 +08:00
return (
2016-12-06 00:21:55 +08:00
<Button className={styles.testAudioBtn}
2017-02-25 04:35:41 +08:00
label={intl.formatMessage(intlMessages.playSoundLabel)}
2017-03-10 00:49:28 +08:00
icon={'unmute'}
2016-12-06 00:21:55 +08:00
size={'md'}
color={'primary'}
2016-12-06 09:37:46 +08:00
onClick={this.props.handlePlayAudioSample}
2016-12-06 00:21:55 +08:00
/>
);
}
};
2017-02-17 03:47:12 +08:00
const intlMessages = defineMessages({
playSoundLabel: {
id: 'app.audio.playSoundLabel',
},
});
export default injectIntl(AudioTest);