2017-07-15 20:44:50 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import { doCloseModal, doNavigate } from "actions/app";
|
|
|
|
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);
|