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';
|
2020-07-29 22:30:26 +02:00
|
|
|
import PublishDescription from './view';
|
2019-06-28 09:27:55 +02:00
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const select = (state) => ({
|
2019-06-28 09:27:55 +02:00
|
|
|
description: makeSelectPublishFormValue('description')(state),
|
|
|
|
});
|
|
|
|
|
2021-10-17 10:36:14 +02:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
2019-06-28 09:27:55 +02:00
|
|
|
});
|
|
|
|
|
2020-07-29 22:30:26 +02:00
|
|
|
export default connect(select, perform)(PublishDescription);
|