2021-05-15 06:10:28 +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';
|
2021-05-15 06:10:28 +02:00
|
|
|
import PublishReleaseDate from './view';
|
|
|
|
|
|
|
|
const select = (state) => ({
|
|
|
|
releaseTime: makeSelectPublishFormValue('releaseTime')(state),
|
|
|
|
releaseTimeEdited: makeSelectPublishFormValue('releaseTimeEdited')(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = (dispatch) => ({
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(PublishReleaseDate);
|