2017-07-27 16:48:18 +02:00
|
|
|
import React from "react";
|
|
|
|
import { connect } from "react-redux";
|
|
|
|
import {
|
2017-08-08 00:13:58 +02:00
|
|
|
doSendSupport,
|
|
|
|
doSetSupportAmount,
|
|
|
|
doSetSupportClaimID,
|
|
|
|
} from "actions/claims";
|
2017-07-27 16:48:18 +02:00
|
|
|
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 => ({
|
2017-08-08 00:13:58 +02:00
|
|
|
sendSupport: () => dispatch(doSendSupport()),
|
|
|
|
setAmount: amount => dispatch(doSetSupportAmount(amount)),
|
|
|
|
setClaimID: claim_id => dispatch(doSetSupportClaimID(claim_id)),
|
2017-07-27 16:48:18 +02:00
|
|
|
});
|
|
|
|
|
2017-07-27 22:15:13 +02:00
|
|
|
export default connect(select, perform)(TipLink);
|