| 12345678910111213141516171819202122232425262728293031 |
- import { connect } from 'react-redux';
-
- import { createToolbarEvent } from '../../../analytics/AnalyticsEvents';
- import { sendAnalytics } from '../../../analytics/functions';
- import { openDialog } from '../../../base/dialog/actions';
- import { translate } from '../../../base/i18n/functions';
- import AbstractSpeakerStatsButton from '../AbstractSpeakerStatsButton';
-
- import SpeakerStats from './SpeakerStats';
-
-
- /**
- * Implementation of a button for opening speaker stats dialog.
- */
- class SpeakerStatsButton extends AbstractSpeakerStatsButton {
-
- /**
- * Handles clicking / pressing the button, and opens the appropriate dialog.
- *
- * @protected
- * @returns {void}
- */
- _handleClick() {
- const { dispatch } = this.props;
-
- sendAnalytics(createToolbarEvent('speaker.stats'));
- dispatch(openDialog(SpeakerStats));
- }
- }
-
- export default translate(connect()(SpeakerStatsButton));
|