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

14 lines
471 B
JavaScript
Raw Normal View History

2018-03-26 14:32:43 -07: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 17:27:12 -04:00
import { push } from 'connected-react-router';
2018-03-26 14:32:43 -07:00
const perform = (dispatch) => ({
closeModal: () => dispatch(doHideModal()),
2018-03-26 14:32:43 -07:00
clearPublish: () => dispatch(doClearPublish()),
navigate: (path) => dispatch(push(path)),
2018-03-26 14:32:43 -07:00
});
2021-10-19 00:49:51 -04:00
export default connect(null, perform)(ModalPublishSuccess);