Removed email verification reward messaging #914
4 changed files with 3 additions and 21 deletions
|
@ -3,15 +3,10 @@ import { connect } from 'react-redux';
|
||||||
import { doUserEmailNew, doUserInviteNew } from 'redux/actions/user';
|
import { doUserEmailNew, doUserInviteNew } from 'redux/actions/user';
|
||||||
import { selectEmailNewIsPending, selectEmailNewErrorMessage } from 'redux/selectors/user';
|
import { selectEmailNewIsPending, selectEmailNewErrorMessage } from 'redux/selectors/user';
|
||||||
import UserEmailNew from './view';
|
import UserEmailNew from './view';
|
||||||
import rewards from 'rewards';
|
|
||||||
import { makeSelectRewardAmountByType } from 'redux/selectors/rewards';
|
|
||||||
|
|
||||||
const select = state => ({
|
const select = state => ({
|
||||||
isPending: selectEmailNewIsPending(state),
|
isPending: selectEmailNewIsPending(state),
|
||||||
errorMessage: selectEmailNewErrorMessage(state),
|
errorMessage: selectEmailNewErrorMessage(state),
|
||||||
rewardAmount: makeSelectRewardAmountByType()(state, {
|
|
||||||
reward_type: rewards.TYPE_CONFIRM_EMAIL,
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { CreditAmount } from 'component/common';
|
|
||||||
import { Form, FormRow, Submit } from 'component/form.js';
|
import { Form, FormRow, Submit } from 'component/form.js';
|
||||||
|
|
||||||
class UserEmailNew extends React.PureComponent {
|
class UserEmailNew extends React.PureComponent {
|
||||||
|
@ -23,18 +22,12 @@ class UserEmailNew extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { cancelButton, errorMessage, isPending, rewardAmount } = this.props;
|
const { cancelButton, errorMessage, isPending } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
Let us know your email and you'll receive{' '}
|
{__("We'll let you know about LBRY updates, security issues, and great new content.")}
|
||||||
<CreditAmount amount={rewardAmount} label="LBC" />, the blockchain token used by LBRY.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
{__(
|
|
||||||
"We'll also let you know about LBRY updates, security issues, and great new content."
|
|
||||||
)}
|
|
||||||
</p>
|
</p>
|
||||||
<p>{__("We'll never sell your email, and you can unsubscribe at any time.")}</p>
|
<p>{__("We'll never sell your email, and you can unsubscribe at any time.")}</p>
|
||||||
<Form onSubmit={this.handleSubmit.bind(this)}>
|
<Form onSubmit={this.handleSubmit.bind(this)}>
|
||||||
|
|
|
@ -7,16 +7,11 @@ import {
|
||||||
selectEmailVerifyErrorMessage,
|
selectEmailVerifyErrorMessage,
|
||||||
} from 'redux/selectors/user';
|
} from 'redux/selectors/user';
|
||||||
import UserEmailVerify from './view';
|
import UserEmailVerify from './view';
|
||||||
import rewards from 'rewards';
|
|
||||||
import { makeSelectRewardAmountByType } from 'redux/selectors/rewards';
|
|
||||||
|
|
||||||
const select = state => ({
|
const select = state => ({
|
||||||
isPending: selectEmailVerifyIsPending(state),
|
isPending: selectEmailVerifyIsPending(state),
|
||||||
email: selectEmailToVerify(state),
|
email: selectEmailToVerify(state),
|
||||||
errorMessage: selectEmailVerifyErrorMessage(state),
|
errorMessage: selectEmailVerifyErrorMessage(state),
|
||||||
rewardAmount: makeSelectRewardAmountByType()(state, {
|
|
||||||
reward_type: rewards.TYPE_CONFIRM_EMAIL,
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const perform = dispatch => ({
|
const perform = dispatch => ({
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Link from 'component/link';
|
import Link from 'component/link';
|
||||||
import { CreditAmount } from 'component/common';
|
|
||||||
import { Form, FormRow, Submit } from 'component/form.js';
|
import { Form, FormRow, Submit } from 'component/form.js';
|
||||||
|
|
||||||
class UserEmailVerify extends React.PureComponent {
|
class UserEmailVerify extends React.PureComponent {
|
||||||
|
@ -29,7 +28,7 @@ class UserEmailVerify extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { cancelButton, errorMessage, email, isPending, rewardAmount } = this.props;
|
const { cancelButton, errorMessage, email, isPending } = this.props;
|
||||||
return (
|
return (
|
||||||
<Form onSubmit={this.handleSubmit.bind(this)}>
|
<Form onSubmit={this.handleSubmit.bind(this)}>
|
||||||
<p>Please enter the verification code emailed to {email}.</p>
|
<p>Please enter the verification code emailed to {email}.</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue