lbry-desktop/src/ui/modal/modalRewardApprovalRequired/index.js

18 lines
437 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import { doHideModal } from 'redux/actions/app';
import { doAuthNavigate } from 'redux/actions/navigation';
import ModalRewardApprovalRequired from './view';
2017-08-26 05:21:26 +02:00
const perform = dispatch => ({
doAuth: () => {
dispatch(doHideModal());
2017-08-26 05:21:26 +02:00
dispatch(doAuthNavigate());
},
closeModal: () => dispatch(doHideModal()),
2017-08-26 05:21:26 +02:00
});
export default connect(
null,
perform
)(ModalRewardApprovalRequired);