lbry-desktop/ui/modal/modalPublish/index.js
2021-10-20 17:05:37 -04:00

13 lines
471 B
JavaScript

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import ModalPublishSuccess from './view';
import { doClearPublish } from 'redux/actions/publish';
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);