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

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