您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

CustomDialog.js 541B

123456789101112131415161718192021222324
  1. // @flow
  2. import { connect } from '../../../redux';
  3. import { _abstractMapStateToProps } from '../../functions';
  4. import BaseDialog, { type Props } from './BaseDialog';
  5. /**
  6. * Implements a custom dialog component, where the content can freely be
  7. * rendered.
  8. */
  9. class CustomDialog extends BaseDialog<Props, *> {
  10. /**
  11. * Implements {@code BaseDialog._renderContent}.
  12. *
  13. * @inheritdoc
  14. */
  15. _renderContent() {
  16. return this.props.children;
  17. }
  18. }
  19. export default connect(_abstractMapStateToProps)(CustomDialog);