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.3KB

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