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

SuspendedOverlay.js 1.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import React from 'react';
  2. import { translate } from '../../base/i18n';
  3. import AbstractOverlay from './AbstractOverlay';
  4. /**
  5. * Implements a React Component for suspended overlay. Shown when a suspend is
  6. * detected.
  7. */
  8. class SuspendedOverlay extends AbstractOverlay {
  9. /**
  10. * Constructs overlay body with the message and a button to rejoin.
  11. *
  12. * @returns {ReactElement|null}
  13. * @override
  14. * @protected
  15. */
  16. _renderOverlayContent() {
  17. const btnClass = 'inlay__button button-control button-control_primary';
  18. const { t } = this.props;
  19. /* eslint-disable react/jsx-handler-names */
  20. return (
  21. <div className = 'inlay'>
  22. <span className = 'inlay__icon icon-microphone' />
  23. <span className = 'inlay__icon icon-camera' />
  24. <h3
  25. className = 'inlay__title'>
  26. { t('suspendedoverlay.title') }
  27. </h3>
  28. <button
  29. className = { btnClass }
  30. onClick = { this._reconnectNow }>
  31. { t('suspendedoverlay.rejoinKeyTitle') }
  32. </button>
  33. </div>
  34. );
  35. /* eslint-enable react/jsx-handler-names */
  36. }
  37. }
  38. export default translate(SuspendedOverlay);