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

18 lines
576 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, makeSelectClaimForUri } 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 select = (state, props) => ({
claim: makeSelectClaimForUri(props.uri)(state),
});
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
});
export default connect(select, perform)(ModalPublishSuccess);