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

CustomDialog.js 453B

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