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