import React from "react"; import Link from "component/link"; import { FormRow } from "component/form"; import UriIndicator from "component/uriIndicator"; class WalletSendTip extends React.PureComponent { constructor(props) { super(props); this.state = { amount: 0.0, }; } handleSendButtonClicked() { const { claim_id, uri } = this.props; let amount = this.state.amount; this.props.sendSupport(amount, claim_id, uri); } handleSupportPriceChange(event) { this.setState({ amount: Number(event.target.value), }); } render() { const { errorMessage, isPending, title, uri } = this.props; return (

{__("Support")}

{__( 'This will appear as a tip for "%s" located at %s.', title, uri ) + " "} } placeholder="1.00" onChange={event => this.handleSupportPriceChange(event)} />
); } } export default WalletSendTip;