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.

PageReloadFilmstripOnlyOverlay.js 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../base/i18n';
  4. import AbstractPageReloadOverlay from './AbstractPageReloadOverlay';
  5. import FilmstripOnlyOverlayFrame from './FilmstripOnlyOverlayFrame';
  6. /**
  7. * Implements a React Component for page reload overlay for filmstrip only
  8. * mode. Shown before the conference is reloaded. Shows a warning message and
  9. * counts down towards the reload.
  10. */
  11. class PageReloadFilmstripOnlyOverlay extends AbstractPageReloadOverlay {
  12. /**
  13. * Implements React's {@link Component#render()}.
  14. *
  15. * @inheritdoc
  16. * @returns {ReactElement|null}
  17. */
  18. render() {
  19. const { t } = this.props;
  20. const { message, timeLeft, title } = this.state;
  21. return (
  22. <FilmstripOnlyOverlayFrame>
  23. <div className = 'inlay-filmstrip-only__container'>
  24. <div className = 'inlay-filmstrip-only__title'>
  25. { t(title) }
  26. </div>
  27. <div className = 'inlay-filmstrip-only__text'>
  28. { t(message, { seconds: timeLeft }) }
  29. </div>
  30. </div>
  31. { this._renderButton() }
  32. { this._renderProgressBar() }
  33. </FilmstripOnlyOverlayFrame>
  34. );
  35. }
  36. }
  37. export default translate(connect()(PageReloadFilmstripOnlyOverlay));