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

18 lines
560 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 'lbry-redux';
import fs from 'fs';
2019-08-16 16:50:06 +02:00
import path from 'path';
2018-04-02 18:03:12 +02:00
import ModalConfirmThumbnailUpload from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2019-08-16 16:50:06 +02:00
upload: filePath => dispatch(doUploadThumbnail(filePath, null, null, fs, 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);