lbry-desktop/ui/js/component/tipLink/index.js

19 lines
486 B
JavaScript
Raw Normal View History

import React from "react";
import { connect } from "react-redux";
import {
doSendSupport,
doSetSupportAmount,
doSetSupportClaimID,
} from "actions/claims";
import TipLink from "./view";
2017-07-27 22:15:13 +02:00
const select = state => ({});
const perform = dispatch => ({
sendSupport: () => dispatch(doSendSupport()),
setAmount: amount => dispatch(doSetSupportAmount(amount)),
setClaimID: claim_id => dispatch(doSetSupportClaimID(claim_id)),
});
2017-07-27 22:15:13 +02:00
export default connect(select, perform)(TipLink);