Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

NoRoomError.web.js 998B

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