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.

CustomSubmitDialog.js 717B

123456789101112131415161718192021222324252627282930313233
  1. // @flow
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../../i18n';
  4. import { _abstractMapStateToProps } from '../../functions';
  5. import { type Props as BaseProps } from './BaseDialog';
  6. import BaseSubmitDialog from './BaseSubmitDialog';
  7. type Props = {
  8. ...BaseProps,
  9. t: Function
  10. }
  11. /**
  12. * Implements a submit dialog component that can have free content.
  13. */
  14. class CustomSubmitDialog extends BaseSubmitDialog<Props, *> {
  15. /**
  16. * Implements {@code BaseSubmitDialog._renderSubmittable}.
  17. *
  18. * @inheritdoc
  19. */
  20. _renderSubmittable() {
  21. return this.props.children;
  22. }
  23. }
  24. export default translate(
  25. connect(_abstractMapStateToProps)(CustomSubmitDialog));