From ee19f9b923ed6aa0ddb13999942e11e8ccfe5e7a Mon Sep 17 00:00:00 2001 From: jessop Date: Thu, 22 Aug 2019 17:24:19 -0400 Subject: [PATCH] Enables wallet and rewards --- package.json | 2 +- src/ui/page/account/view.jsx | 20 ++++++-------------- src/ui/page/rewards/view.jsx | 28 ++++++++++++---------------- src/ui/page/wallet/view.jsx | 12 ++++-------- src/ui/redux/actions/app.js | 2 ++ 5 files changed, 25 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 6b67aeff4..40e5edb80 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "husky": "^0.14.3", "json-loader": "^0.5.4", "lbry-format": "https://github.com/lbryio/lbry-format.git", - "lbry-redux": "lbryio/lbry-redux#1af092ce2cb507d9a41711b864874c0bd76935ae", + "lbry-redux": "lbryio/lbry-redux#f4413a8ab4928a9487274568bb72e440c45875be", "lbryinc": "lbryio/lbryinc#1ce266b3c52654190b955e9c869b8e302aa5c585", "lint-staged": "^7.0.2", "localforage": "^1.7.1", diff --git a/src/ui/page/account/view.jsx b/src/ui/page/account/view.jsx index fbeb5e7ba..db70024f1 100644 --- a/src/ui/page/account/view.jsx +++ b/src/ui/page/account/view.jsx @@ -1,28 +1,20 @@ import React from 'react'; -import classnames from 'classnames'; import RewardSummary from 'component/rewardSummary'; import RewardTotal from 'component/rewardTotal'; import Page from 'component/page'; -import UnsupportedOnWeb from 'component/common/unsupported-on-web'; import UserEmail from 'component/userEmail'; import InvitePage from 'page/invite'; const AccountPage = () => ( - {/* @if TARGET='web' */} - - {/* @endif */} - -
-
- -
- - -
+
+ +
+ +
-
+ ); diff --git a/src/ui/page/rewards/view.jsx b/src/ui/page/rewards/view.jsx index d927e10bf..fe92bba19 100644 --- a/src/ui/page/rewards/view.jsx +++ b/src/ui/page/rewards/view.jsx @@ -7,7 +7,6 @@ import Button from 'component/button'; import Page from 'component/page'; import classnames from 'classnames'; import { rewards as REWARD_TYPES } from 'lbryinc'; -import UnsupportedOnWeb from 'component/common/unsupported-on-web'; type Props = { doAuth: () => void, @@ -29,22 +28,20 @@ class RewardsPage extends PureComponent { renderPageHeader() { const { user, daemonSettings } = this.props; - if (user && !user.is_reward_approved && daemonSettings && daemonSettings.share_usage_data) { + if (user && !user.is_reward_approved && ((daemonSettings && daemonSettings.share_usage_data) || IS_WEB)) { if (!user.primary_email || !user.has_verified_email || !user.is_identity_verified) { return ( - !IS_WEB && ( -
-

{__('Rewards Approval to Earn Credits (LBC)')}

-

- {__( - 'This step is optional. You can continue to use this app without rewards, but LBC may be needed for some tasks.' - )}{' '} -

- ) +