import React from "react"; import Link from "component/link"; import { FormRow } from "component/form"; class TipLink extends React.PureComponent { constructor(props) { super(props); this.state = { tipAmount: 0.0, }; } handleSendButtonClicked() { let claim_id = this.props.claim_id; let amount = this.state.tipAmount; this.props.sendSupport(amount, claim_id); } handleSupportCancelButtonClicked() { this.props.hideTipBox(); } handleSupportPriceChange(event) { this.setState({ tipAmount: Number(event.target.value), }); } render() { return (

{__("Support")}

{__( "Support the creator and the success of their content by sending a tip. " )}
this.handleSupportPriceChange(event)} />
); } } export default TipLink;