Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed email verification reward messaging #914

Merged
merged 1 commit into from Dec 30, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions src/renderer/component/userEmailNew/index.js
Expand Up @@ -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 => ({
Expand Down
11 changes: 2 additions & 9 deletions src/renderer/component/userEmailNew/view.jsx
@@ -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 {
Expand All @@ -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)}>
Expand Down
5 changes: 0 additions & 5 deletions src/renderer/component/userEmailVerify/index.js
Expand Up @@ -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 => ({
Expand Down
3 changes: 1 addition & 2 deletions src/renderer/component/userEmailVerify/view.jsx
@@ -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 {
Expand Down Expand Up @@ -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>
Expand Down