Removed email verification reward messaging #914

Merged
liamcardenas merged 1 commit from remove-email-reward into master 2017-12-30 01:42:54 +01:00
4 changed files with 3 additions and 21 deletions

View file

@ -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 => ({

View file

@ -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)}>

View file

@ -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 => ({

View file

@ -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>