2019-06-28 03:27:55 -04:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-07 23:47:39 -04:00
|
|
|
import { makeSelectPublishFormValue } from 'redux/selectors/publish';
|
|
|
|
import { doUpdatePublishForm } from 'redux/actions/publish';
|
2020-07-29 15:30:26 -05:00
|
|
|
import PublishDescription from './view';
|
2019-06-28 03:27:55 -04:00
|
|
|
|
2021-10-07 23:47:39 -04:00
|
|
|
const select = (state) => ({
|
2019-06-28 03:27:55 -04:00
|
|
|
description: makeSelectPublishFormValue('description')(state),
|
|
|
|
});
|
|
|
|
|
2021-10-07 23:47:39 -04:00
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
2019-06-28 03:27:55 -04:00
|
|
|
});
|
|
|
|
|
2020-07-29 15:30:26 -05:00
|
|
|
export default connect(select, perform)(PublishDescription);
|