// @flow import * as React from 'react'; import { FormField, Form } from 'component/common/form'; import Button from 'component/button'; import { Lbryio } from 'lbryinc'; type Props = { cancelButton: React.Node, errorMessage: ?string, isPending: boolean, addUserEmail: string => void, }; type State = { email: string, }; class UserEmailNew extends React.PureComponent { constructor() { super(); this.state = { email: '', }; (this: any).handleSubmit = this.handleSubmit.bind(this); (this: any).handleEmailChanged = this.handleEmailChanged.bind(this); } handleEmailChanged(event: SyntheticInputEvent<*>) { this.setState({ email: event.target.value, }); } handleSubmit() { const { email } = this.state; const { addUserEmail } = this.props; addUserEmail(email); // @if TARGET='web' Lbryio.call('user_tag', 'edit', { add: 'lbrytv' }); // @endif } render() { const { cancelButton, errorMessage, isPending } = this.props; return (

{__('Verify Your Email')}

{/* @if TARGET='app' */} {__("We'll let you know about LBRY updates, security issues, and great new content.")} {/* @endif */} {/* @if TARGET='web' */} {__('Stay up to date with lbry.tv and be the first to know about the progress we make.')} {/* @endif */}

} />
{cancelButton}

{__('Your email address will never be sold and you can unsubscribe at any time.')}

); } } export default UserEmailNew;