lbry-desktop/ui/js/component/tipLink/index.js
2017-08-08 03:49:22 +05:30

18 lines
540 B
JavaScript

import React from "react";
import { connect } from "react-redux";
import {
doSendDraftTransaction,
doSetDraftTransactionAmount,
doSetDraftTransactionAddress,
} from "actions/wallet";
import TipLink from "./view";
const select = state => ({});
const perform = dispatch => ({
sendToAddress: () => dispatch(doSendDraftTransaction()),
setAmount: amount => dispatch(doSetDraftTransactionAmount(amount)),
setAddress: address => dispatch(doSetDraftTransactionAddress(address)),
});
export default connect(select, perform)(TipLink);