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