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';
|
2019-07-02 22:30:34 -04:00
|
|
|
import { doUploadThumbnail, doUpdatePublishForm } from 'lbry-redux';
|
2018-04-02 12:03:12 -04:00
|
|
|
import ModalConfirmThumbnailUpload from './view';
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-10-29 13:23:53 -04:00
|
|
|
closeModal: () => dispatch(doHideModal()),
|
2019-10-07 16:02:32 -04:00
|
|
|
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);
|