import React from 'react'; import { Modal } from 'modal/modal'; import Link from 'component/link/index'; import UserFieldNew from 'component/userFieldNew'; import UserFieldVerify from 'component/userFieldVerify'; class ModalPhoneCollection extends React.PureComponent { renderInner() { const { closeModal, email, user } = this.props; const cancelButton = ; if (!user.has_verified_email && !email) { return ; } else if (!user.has_verified_email) { return ; } closeModal(); } render() { const { user } = this.props; // this shouldn't happen if (!user) { return null; } return (

Verify Your Phone

{this.renderInner()}
); } } export default ModalPhoneCollection;