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.

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);