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

17 lines
462 B
JavaScript
Raw Normal View History

2018-03-26 23:32:43 +02:00
import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import ModalPublishSuccess from './view';
import { doClearPublish } from 'lbry-redux';
2019-04-10 23:27:12 +02:00
import { push } from 'connected-react-router';
2018-03-26 23:32:43 +02:00
const perform = dispatch => ({
closeModal: () => dispatch(doHideModal()),
2018-03-26 23:32:43 +02:00
clearPublish: () => dispatch(doClearPublish()),
2019-04-10 23:27:12 +02:00
navigate: path => dispatch(push(path)),
2018-03-26 23:32:43 +02:00
});
export default connect(
null,
perform
)(ModalPublishSuccess);