// I'll come back to this /* eslint-disable */ import React from 'react'; import Button from 'component/button'; import { Form, FormField, Submit } from 'component/common/form'; class UserPhoneVerify 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.verifyUserPhone(code); } reset() { const { resetPhone } = this.props; resetPhone(); } render() { const { cancelButton, phoneErrorMessage, phone, countryCode } = this.props; return (

{' '} {__( `Please enter the verification code sent to +${countryCode}${phone}. Didn't receive it? ` )}

{ this.handleCodeChanged(event); }} label={__('Verification Code')} error={phoneErrorMessage} inputButton={} />
{cancelButton}

{__('Email')}