2018-10-18 08:28:08 +00:00
|
|
|
// @flow
|
|
|
|
|
|
|
|
import { translate } from '../../../i18n';
|
2019-03-21 16:38:29 +00:00
|
|
|
import { connect } from '../../../redux';
|
2018-10-18 08:28:08 +00:00
|
|
|
|
2019-01-22 10:35:28 +00:00
|
|
|
import { _abstractMapStateToProps } from '../../functions';
|
|
|
|
|
2018-10-18 08:28:08 +00:00
|
|
|
import { type Props as BaseProps } from './BaseDialog';
|
|
|
|
import BaseSubmitDialog from './BaseSubmitDialog';
|
|
|
|
|
2019-03-19 15:42:25 +00:00
|
|
|
type Props = BaseProps & {
|
2018-10-18 08:28:08 +00:00
|
|
|
t: Function
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements a submit dialog component that can have free content.
|
|
|
|
*/
|
|
|
|
class CustomSubmitDialog extends BaseSubmitDialog<Props, *> {
|
|
|
|
/**
|
|
|
|
* Implements {@code BaseSubmitDialog._renderSubmittable}.
|
|
|
|
*
|
|
|
|
* @inheritdoc
|
|
|
|
*/
|
|
|
|
_renderSubmittable() {
|
|
|
|
return this.props.children;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-22 10:35:28 +00:00
|
|
|
export default translate(
|
|
|
|
connect(_abstractMapStateToProps)(CustomSubmitDialog));
|