// @flow

import { compose } from 'redux';
import { connect } from 'react-redux';
import EmailListEditor from './components/EmailListEditor';
import { createEmailList } from 'app/actions/EmailListActions';
import { push } from 'react-router-redux';

const mapDispatchToProps = { mutateFunction: createEmailList, push };

export default compose(
  connect(
    null,
    mapDispatchToProps
  )
)(EmailListEditor);

// @flow

import { compose } from 'redux';
import { connect } from 'react-redux';
import EmailListEditor from './components/EmailListEditor';
import { createEmailList } from 'app/actions/EmailListActions';
import { push } from 'react-router-redux';

const mapDispatchToProps = { mutateFunction: createEmailList, push };

const mapStateToProps = () => ({
  initialValues: { requireInternalAddress: true }
});

export default compose(
  connect(
    mapStateToProps,
    mapDispatchToProps
  )
)(EmailListEditor);

Make mailinglists internal only by default
Make mailinglists internal only by default
