您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

InfoDialogButton.js 987B

1234567891011121314151617181920212223242526272829303132333435363738
  1. // @flow
  2. import type { Dispatch } from 'redux';
  3. import { translate } from '../../../../base/i18n';
  4. import { connect } from '../../../../base/redux';
  5. import { AbstractButton } from '../../../../base/toolbox';
  6. import type { AbstractButtonProps } from '../../../../base/toolbox';
  7. import { beginShareRoom } from '../../../../share-room';
  8. type Props = AbstractButtonProps & {
  9. /**
  10. * The Redux dispatch function.
  11. */
  12. dispatch: Dispatch<any>
  13. };
  14. /**
  15. * Implements an {@link AbstractButton} to open the info dialog of the meeting.
  16. */
  17. class InfoDialogButton extends AbstractButton<Props, *> {
  18. accessibilityLabel = 'info.accessibilityLabel';
  19. iconName = 'icon-info';
  20. label = 'info.label';
  21. /**
  22. * Handles clicking / pressing the button, and opens the appropriate dialog.
  23. *
  24. * @private
  25. * @returns {void}
  26. */
  27. _handleClick() {
  28. this.props.dispatch(beginShareRoom());
  29. }
  30. }
  31. export default translate(connect()(InfoDialogButton));