import React from 'react'; import Link from 'component/link'; import {FormRow} from 'component/form.js'; class UserEmailVerify extends React.Component { constructor(props) { super(props); this.state = { code: '', }; } handleCodeChanged(event) { this.setState({ code: event.target.value, }); } handleSubmit(event) { event.preventDefault(); this.props.verifyUserEmail(this.state.code) } render() { const { errorMessage, isPending } = this.props return
{ this.handleSubmit(event) }}> { this.handleCodeChanged(event) }} errorMessage={errorMessage} helper="A verification code is required to participate in early access rewards."/>
{ this.handleSubmit(event)}} />
} } export default UserEmailVerify