lbry-desktop/ui/modal/modalConfirmThumbnailUpload/index.js

13 lines
561 B
JavaScript
Raw Normal View History

2018-04-02 18:03:12 +02:00
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doUploadThumbnail, doUpdatePublishForm } from 'redux/actions/publish';
2018-04-02 18:03:12 +02:00
import ModalConfirmThumbnailUpload from './view';
const perform = (dispatch) => ({
closeModal: () => dispatch(doHideModal()),
upload: (fileWithPath, cb) => dispatch(doUploadThumbnail(null, fileWithPath.file, null, null, fileWithPath.path, cb)),
updatePublishForm: (value) => dispatch(doUpdatePublishForm(value)),
2018-04-02 18:03:12 +02:00
});
export default connect(null, perform)(ModalConfirmThumbnailUpload);