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