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

12345678910111213141516171819202122232425
  1. // @flow
  2. import { connect } from 'react-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. // $FlowExpectedError
  20. export default connect(_abstractMapStateToProps)(CustomDialog);