// I'll come back to this /* eslint-disable */ import React from 'react'; import BusyIndicator from 'component/common/busy-indicator'; import CreditAmount from 'component/common/credit-amount'; import { Form, FormRow, FormField, Submit } from 'component/common/form'; class FormInviteNew extends React.PureComponent { constructor() { super(); this.state = { email: '', }; this.handleSubmit = this.handleSubmit.bind(this); } handleEmailChanged(event) { this.setState({ email: event.target.value, }); } handleSubmit() { const { email } = this.state; this.props.inviteNew(email); } render() { const { errorMessage, isPending, rewardAmount } = this.props; const label = `${__('Get')} ${rewardAmount} LBC`; 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.")}
}