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

16 lines
513 B
JavaScript
Raw Normal View History

2018-04-02 12:03:12 -04:00
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doUploadThumbnail, doUpdatePublishForm } from 'lbry-redux';
2018-04-02 12:03:12 -04:00
import ModalConfirmThumbnailUpload from './view';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
upload: file => dispatch(doUploadThumbnail(null, file, null, null, file.path)),
2018-04-02 12:03:12 -04:00
updatePublishForm: value => dispatch(doUpdatePublishForm(value)),
});
2018-06-08 00:05:45 -04:00
export default connect(
2019-04-24 10:02:08 -04:00
null,
2018-06-08 00:05:45 -04:00
perform
)(ModalConfirmThumbnailUpload);