2021-05-15 06:10:28 +02:00
|
|
|
import { connect } from 'react-redux';
|
2021-10-08 05:47:39 +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);
|