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 (