2018-04-02 18:03:12 +02:00
|
|
|
import { connect } from 'react-redux';
|
2018-10-29 18:23:53 +01:00
|
|
|
import { doHideModal } from 'redux/actions/app';
|
2021-10-17 10:36:14 +02:00
|
|
|
import { doUploadThumbnail, doUpdatePublishForm } from 'redux/actions/publish';
|
2018-04-02 18:03:12 +02:00
|
|
|
import ModalConfirmThumbnailUpload from './view';
|
|
|
|
|
2021-09-13 17:40:31 +02:00
|
|
|
const perform = (dispatch) => ({
|
2018-10-29 18:23:53 +01:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2021-09-13 17:40:31 +02:00
|
|
|
upload: (file, cb) => dispatch(doUploadThumbnail(null, file, null, null, file.path, cb)),
|
|
|
|
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
|
2018-04-02 18:03:12 +02:00
|
|
|
});
|
|
|
|
|
2021-09-13 17:40:31 +02:00
|
|
|
export default connect(null, perform)(ModalConfirmThumbnailUpload);
|