2017-07-27 16:48:18 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import {
|
|
|
|
doSendDraftTransaction,
|
|
|
|
doSetDraftTransactionAmount,
|
|
|
|
doSetDraftTransactionAddress,
|
|
|
|
} from "actions/wallet";
|
|
|
|
import TipLink from "./view";
|
|
|
|
|
2017-07-27 22:15:13 +02:00
|
|
|
const select = state => ({});
|
2017-07-27 16:48:18 +02:00
|
|
|
|
|
|
|
const perform = dispatch => ({
|
|
|
|
sendToAddress: () => dispatch(doSendDraftTransaction()),
|
|
|
|
setAmount: amount => dispatch(doSetDraftTransactionAmount(amount)),
|
|
|
|
setAddress: address => dispatch(doSetDraftTransactionAddress(address)),
|
|
|
|
});
|
|
|
|
|
2017-07-27 22:15:13 +02:00
|
|
|
export default connect(select, perform)(TipLink);
|