2019-06-28 09:27:55 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { makeSelectPublishFormValue } from 'redux/selectors/publish';
|
|
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
2019-06-28 09:27:55 +02:00
|
|
|
import PublishPage from './view';
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const select = (state) => ({
|
2019-06-28 09:27:55 +02:00
|
|
|
contentIsFree: makeSelectPublishFormValue('contentIsFree')(state),
|
|
|
|
fee: makeSelectPublishFormValue('fee')(state),
|
|
|
|
});
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (values) => dispatch(doUpdatePublishForm(values)),
|
2019-06-27 22:27:38 +02:00
|
|
|
});
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
export default connect(select, perform)(PublishPage);
|