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

DialInNumber.web.js 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. import React, { Component } from 'react';
  2. import PropTypes from 'prop-types';
  3. import { translate } from '../../../base/i18n';
  4. /**
  5. * React {@code Component} responsible for displaying a telephone number and
  6. * conference ID for dialing into a conference.
  7. *
  8. * @extends Component
  9. */
  10. class DialInNumber extends Component {
  11. /**
  12. * {@code DialInNumber} component's property types.
  13. *
  14. * @static
  15. */
  16. static propTypes = {
  17. /**
  18. * The numberic identifier for the current conference, used after
  19. * dialing a the number to join the conference.
  20. */
  21. conferenceID: PropTypes.number,
  22. /**
  23. * The phone number to dial to begin the process of dialing into a
  24. * conference.
  25. */
  26. phoneNumber: PropTypes.string,
  27. /**
  28. * Invoked to obtain translated strings.
  29. */
  30. t: PropTypes.func
  31. };
  32. /**
  33. * Implements React's {@link Component#render()}.
  34. *
  35. * @inheritdoc
  36. * @returns {ReactElement}
  37. */
  38. render() {
  39. const { conferenceID, phoneNumber } = this.props;
  40. return (
  41. <div className = 'dial-in-number'>
  42. <span className = 'phone-number'>
  43. { this.props.t('info.dialInNumber', { phoneNumber }) }
  44. </span>
  45. <span className = 'conference-id'>
  46. { this.props.t(
  47. 'info.dialInConferenceID', { conferenceID }) }
  48. </span>
  49. </div>
  50. );
  51. }
  52. }
  53. export default translate(DialInNumber);