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

16 lines
513 B
JavaScript
Raw Permalink 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 'lbry-redux';
2018-04-02 18:03:12 +02:00
import ModalConfirmThumbnailUpload from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
upload: file => dispatch(doUploadThumbnail(null, file, null, null, file.path)),
2018-04-02 18:03:12 +02:00
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
});
2018-06-08 06:05:45 +02:00
export default connect(
2019-04-24 16:02:08 +02:00
null,
2018-06-08 06:05:45 +02:00
perform
)(ModalConfirmThumbnailUpload);