2017-07-15 20:44:50 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
2017-08-30 14:48:32 +02:00
|
|
|
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);
|