import React from "react"; import Link from "component/link"; import { Form, FormRow, Submit } from "component/form.js"; class UserEmailVerify extends React.PureComponent { constructor(props) { super(props); this.state = { code: "", }; } handleCodeChanged(event) { this.setState({ code: String(event.target.value).trim(), }); } handleSubmit() { const { code } = this.state; this.props.verifyUserEmail(code); } render() { const { errorMessage, isPending } = this.props; return (

{__("Please enter the verification code emailed to you.")}

{ this.handleCodeChanged(event); }} errorMessage={errorMessage} /> {/* render help separately so it always shows */}

{__("Email")}{" "} {" "} {__("if you encounter any trouble with your code.")}

); } } export default UserEmailVerify;