diff --git a/ui/js/component/auth/view.jsx b/ui/js/component/auth/view.jsx index d796e1448..551113ffa 100644 --- a/ui/js/component/auth/view.jsx +++ b/ui/js/component/auth/view.jsx @@ -3,7 +3,7 @@ import { BusyMessage } from "component/common"; import UserEmailNew from "component/userEmailNew"; import UserEmailVerify from "component/userEmailVerify"; -export class Auth extends React.Component { +export class Auth extends React.PureComponent { render() { const { isPending, email, isVerificationCandidate } = this.props; diff --git a/ui/js/component/authOverlay/view.jsx b/ui/js/component/authOverlay/view.jsx index fcb7e77d4..0cce29f9b 100644 --- a/ui/js/component/authOverlay/view.jsx +++ b/ui/js/component/authOverlay/view.jsx @@ -4,7 +4,7 @@ import ModalPage from "component/modal-page.js"; import Auth from "component/auth"; import Link from "component/link"; -export class AuthOverlay extends React.Component { +export class AuthOverlay extends React.PureComponent { constructor(props) { super(props); diff --git a/ui/js/component/userEmailNew/view.jsx b/ui/js/component/userEmailNew/view.jsx index 7e0f83b47..5391bdb3f 100644 --- a/ui/js/component/userEmailNew/view.jsx +++ b/ui/js/component/userEmailNew/view.jsx @@ -2,7 +2,7 @@ import React from "react"; import Link from "component/link"; import { FormRow } from "component/form.js"; -class UserEmailNew extends React.Component { +class UserEmailNew extends React.PureComponent { constructor(props) { super(props); diff --git a/ui/js/component/userEmailVerify/view.jsx b/ui/js/component/userEmailVerify/view.jsx index 4b9272394..c6cc65f34 100644 --- a/ui/js/component/userEmailVerify/view.jsx +++ b/ui/js/component/userEmailVerify/view.jsx @@ -2,7 +2,7 @@ import React from "react"; import Link from "component/link"; import { FormRow } from "component/form.js"; -class UserEmailVerify extends React.Component { +class UserEmailVerify extends React.PureComponent { constructor(props) { super(props); diff --git a/ui/js/component/welcomeModal/view.jsx b/ui/js/component/welcomeModal/view.jsx index 5b0f635c5..13e0cd5f1 100644 --- a/ui/js/component/welcomeModal/view.jsx +++ b/ui/js/component/welcomeModal/view.jsx @@ -4,13 +4,10 @@ import { CreditAmount } from "component/common"; import Link from "component/link"; import RewardLink from "component/rewardLink"; -class WelcomeModal extends React.Component { +class WelcomeModal extends React.PureComponent { render() { const { closeModal, hasClaimed, isRewardApproved, reward } = this.props; - console.log("welcome"); - console.log(this.props); - return !hasClaimed ?
diff --git a/ui/js/page/rewards/view.jsx b/ui/js/page/rewards/view.jsx index a40afefff..6f78a6490 100644 --- a/ui/js/page/rewards/view.jsx +++ b/ui/js/page/rewards/view.jsx @@ -38,8 +38,6 @@ const RewardsPage = props => { rewards, } = props; - console.log(props); - let content, isCard = false;