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: 1.0, }; } handleSendButtonClicked() { let claim_id = this.props.claim_id; let amount = this.state.tipAmount; this.props.sendSupport(amount, claim_id); this.props.onTipHide(); } handleSupportCancelButtonClicked() { this.props.onTipHide(); } 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;