2017-08-31 06:15:13 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
2017-11-13 22:02:23 +01:00
|
|
|
import { doCloseModal } from "redux/actions/app";
|
|
|
|
import { doNavigate } from "redux/actions/navigation";
|
2017-08-31 06:15:13 +02:00
|
|
|
import ModalInsufficientBalance from "./view";
|
|
|
|
|
|
|
|
const select = state => ({});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
addBalance: () => {
|
|
|
|
dispatch(doNavigate("/wallet"));
|
|
|
|
dispatch(doCloseModal());
|
|
|
|
},
|
|
|
|
closeModal: () => dispatch(doCloseModal()),
|
|
|
|
});
|
|
|
|
|
|
|
|
export default connect(select, perform)(ModalInsufficientBalance);
|