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

ConferenceID.web.js 1009B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import PropTypes from 'prop-types';
  2. import React, { Component } from 'react';
  3. import { translate } from '../../../base/i18n';
  4. /**
  5. * Displays a conference ID used as a pin for dialing into a conferene.
  6. *
  7. * @extends Component
  8. */
  9. class ConferenceID extends Component {
  10. /**
  11. * {@code ConferenceID} component's property types.
  12. *
  13. * @static
  14. */
  15. static propTypes = {
  16. /**
  17. * The conference ID for dialing in.
  18. */
  19. conferenceID: PropTypes.number,
  20. /**
  21. * Invoked to obtain translated strings.
  22. */
  23. t: PropTypes.func
  24. };
  25. /**
  26. * Implements React's {@link Component#render()}.
  27. *
  28. * @inheritdoc
  29. * @returns {ReactElement}
  30. */
  31. render() {
  32. const { conferenceID, t } = this.props;
  33. return (
  34. <div className = 'dial-in-conference-id'>
  35. { t('info.dialANumber', { conferenceID }) }
  36. </div>
  37. );
  38. }
  39. }
  40. export default translate(ConferenceID);