lbry-desktop/src/ui/modal/modalPublish/index.js
jessop f2c51f7735 successfully publishes using lbry-redux
updates lbry-redux hash

adds streamPublish success and fail callbacks

passing callbacks in doPublish( success, fail )

update redux

prepare rebase
2019-07-29 14:39:39 -04:00

16 lines
462 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import ModalPublishSuccess from './view';
import { doClearPublish } from 'lbry-redux';
import { push } from 'connected-react-router';
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
clearPublish: () => dispatch(doClearPublish()),
navigate: path => dispatch(push(path)),
});
export default connect(
null,
perform
)(ModalPublishSuccess);