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 627B

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