// @flow import React from 'react'; import Button from 'component/button'; import { Form, FormField } from 'component/common/form'; import CopyableText from 'component/copyableText'; import Card from 'component/common/card'; import I18nMessage from 'component/i18nMessage'; type FormState = { email: string, }; type Props = { errorMessage: ?string, inviteNew: string => void, isPending: boolean, referralLink: string, }; class InviteNew extends React.PureComponent { constructor() { super(); this.state = { email: '', }; (this: any).handleSubmit = this.handleSubmit.bind(this); } handleEmailChanged(event: any) { this.setState({ email: event.target.value, }); } handleSubmit() { const { email } = this.state; this.props.inviteNew(email); } render() { const { errorMessage, isPending, referralLink } = this.props; return (
} onChange={event => { this.handleEmailChanged(event); }} />

, referral_faq_link: