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

18 lines
479 B
JavaScript
Raw Normal View History

2017-07-15 20:44:50 +02:00
import React from "react";
import { connect } from "react-redux";
import { doCloseModal } from "actions/app";
import { doNavigate } from "actions/navigation";
2017-07-15 20:44:50 +02:00
import ModalInsufficientCredits from "./view";
const select = state => ({});
const perform = dispatch => ({
addFunds: () => {
2017-08-26 05:21:26 +02:00
dispatch(doNavigate("/wallet"));
2017-07-15 20:44:50 +02:00
dispatch(doCloseModal());
},
closeModal: () => dispatch(doCloseModal()),
});
export default connect(select, perform)(ModalInsufficientCredits);