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.

DisableLobbyModeDialog.js 974B

123456789101112131415161718192021222324252627282930313233343536
  1. // @flow
  2. import React from 'react';
  3. import { Dialog } from '../../../base/dialog';
  4. import { translate } from '../../../base/i18n';
  5. import { connect } from '../../../base/redux';
  6. import AbstractDisableLobbyModeDialog from '../AbstractDisableLobbyModeDialog';
  7. /**
  8. * Implements a dialog that lets the user disable the lobby mode.
  9. */
  10. class DisableLobbyModeDialog extends AbstractDisableLobbyModeDialog {
  11. /**
  12. * Implements {@code PureComponent#render}.
  13. *
  14. * @inheritdoc
  15. */
  16. render() {
  17. const { t } = this.props;
  18. return (
  19. <Dialog
  20. className = 'lobby-screen'
  21. okKey = 'lobby.disableDialogSubmit'
  22. onSubmit = { this._onDisableLobbyMode }
  23. titleKey = 'lobby.dialogTitle'>
  24. { t('lobby.disableDialogContent') }
  25. </Dialog>
  26. );
  27. }
  28. _onDisableLobbyMode: () => void;
  29. }
  30. export default translate(connect()(DisableLobbyModeDialog));