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-08 05:47:39 +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()),
|
2022-09-02 18:43:35 +02:00
|
|
|
upload: (fileWithPath, cb) => dispatch(doUploadThumbnail(null, fileWithPath.file, null, null, fileWithPath.path, cb)),
|
2021-09-13 17:40:31 +02:00
|
|
|
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);
|