import React from "react"; import Link from "component/link"; import { FormRow } from "component/form.js"; class UserEmailNew extends React.PureComponent { constructor(props) { super(props); this.state = { email: "", }; } handleEmailChanged(event) { this.setState({ email: event.target.value, }); } handleSubmit(event) { event.preventDefault(); this.props.addUserEmail(this.state.email); } render() { const { errorMessage, isPending } = this.props; return (
{ this.handleSubmit(event); }} >

{__( "This process is required to prevent abuse of the rewards program." )}

{__( "We will also contact you about updates and new content, but you can unsubscribe at any time." )}

{ this.handleEmailChanged(event); }} />
{ this.handleSubmit(event); }} />
); } } export default UserEmailNew;