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

14 lines
471 B
JavaScript
Raw Permalink 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 'redux/actions/publish';
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()),
navigate: (path) => dispatch(push(path)),
2018-03-26 23:32:43 +02:00
});
2021-10-19 06:49:51 +02:00
export default connect(null, perform)(ModalPublishSuccess);