Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

ChatPrivacyDialog.tsx 1.2KB

12345678910111213141516171819202122232425262728293031323334
  1. import React from 'react';
  2. import { translate } from '../../../base/i18n/functions';
  3. import { connect } from '../../../base/redux/functions';
  4. import Dialog from '../../../base/ui/components/web/Dialog';
  5. import { AbstractChatPrivacyDialog, _mapDispatchToProps, _mapStateToProps } from '../AbstractChatPrivacyDialog';
  6. /**
  7. * Implements a component for the dialog displayed to avoid mis-sending private messages.
  8. */
  9. class ChatPrivacyDialog extends AbstractChatPrivacyDialog {
  10. /**
  11. * Implements React's {@link Component#render()}.
  12. *
  13. * @inheritdoc
  14. * @returns {ReactElement}
  15. */
  16. render() {
  17. return (
  18. <Dialog
  19. cancel = {{ translationKey: 'dialog.sendPrivateMessageCancel' }}
  20. ok = {{ translationKey: 'dialog.sendPrivateMessageOk' }}
  21. onCancel = { this._onSendGroupMessage }
  22. onSubmit = { this._onSendPrivateMessage }
  23. titleKey = 'dialog.sendPrivateMessageTitle'>
  24. <div>
  25. { this.props.t('dialog.sendPrivateMessage') }
  26. </div>
  27. </Dialog>
  28. );
  29. }
  30. }
  31. export default translate(connect(_mapStateToProps, _mapDispatchToProps)(ChatPrivacyDialog));