You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NoRoomError.web.js 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import PropTypes from 'prop-types';
  2. import React, { Component } from 'react';
  3. import { translate } from '../../../base/i18n';
  4. /**
  5. * Displays an error message stating no room name was specified to fetch dial-in
  6. * numbers for.
  7. *
  8. * @extends Component
  9. */
  10. class NoRoomError extends Component {
  11. /**
  12. * {@code NoRoomError} component's property types.
  13. *
  14. * @static
  15. */
  16. static propTypes = {
  17. /**
  18. * Additional CSS classnames to append to the root of the component.
  19. */
  20. className: PropTypes.string,
  21. /**
  22. * Invoked to obtain translated strings.
  23. */
  24. t: PropTypes.func
  25. };
  26. /**
  27. * Implements React's {@link Component#render()}.
  28. *
  29. * @inheritdoc
  30. * @returns {ReactElement}
  31. */
  32. render() {
  33. const { t } = this.props;
  34. return (
  35. <div className = { this.props.className } >
  36. <div>{ t('info.noNumbers') }</div>
  37. <div>{ t('info.noRoom') }</div>
  38. </div>
  39. );
  40. }
  41. }
  42. export default translate(NoRoomError);