import React from "react"; import { BusyMessage, CreditAmount } from "component/common"; import { Form, FormRow, Submit } from "component/form.js"; class FormInviteNew extends React.PureComponent { constructor(props) { super(props); this.state = { email: "", }; } handleEmailChanged(event) { this.setState({ email: event.target.value, }); } handleSubmit() { const { email } = this.state; this.props.inviteNew(email); } render() { const { errorMessage, isPending } = this.props; return (
); } } class InviteNew extends React.PureComponent { render() { const { errorMessage, invitesRemaining, inviteNew, inviteStatusIsPending, isPending, rewardAmount, } = this.props; return ({__("You have %s invites remaining.", invitesRemaining)}
} {invitesRemaining <= 0 &&{__("You have no invites.")}
}{__( "Or an enemy. Or your cousin Jerry, who you're kind of unsure about." )}