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

16 lines
449 B
JavaScript
Raw Normal View History

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