From 543a81800261bf62bd7e657038ca263009c66517 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 26 Mar 2020 14:15:19 +0100 Subject: [PATCH] link to publish page --- src/component/walletBalanceExtra/view.js | 5 +++-- src/page/subscriptions/view.js | 2 +- src/page/wallet/view.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/component/walletBalanceExtra/view.js b/src/component/walletBalanceExtra/view.js index 7ee9fda..067cc43 100644 --- a/src/component/walletBalanceExtra/view.js +++ b/src/component/walletBalanceExtra/view.js @@ -8,6 +8,7 @@ import Colors from 'styles/colors'; import Icon from 'react-native-vector-icons/FontAwesome5'; import Link from 'component/link'; import walletStyle from 'styles/wallet'; +import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api type Props = { claimsBalance: number, @@ -29,7 +30,7 @@ class WalletBalanceExtra extends React.PureComponent { } render() { - const { claimsBalance, deviceWalletSynced, supportsBalance, tipsBalance } = this.props; + const { claimsBalance, deviceWalletSynced, navigation, supportsBalance, tipsBalance } = this.props; return ( @@ -67,7 +68,7 @@ class WalletBalanceExtra extends React.PureComponent { { - // navigation.navigate({ }) + navigation.navigate({ routeName: Constants.DRAWER_ROUTE_PUBLISH }); }} text={__('Earn more tips by uploading cool videos')} /> diff --git a/src/page/subscriptions/view.js b/src/page/subscriptions/view.js index dd6e88f..7f808a8 100644 --- a/src/page/subscriptions/view.js +++ b/src/page/subscriptions/view.js @@ -102,7 +102,7 @@ class SubscriptionsPage extends React.PureComponent { }); } - if (sdkReady && this.state.showRewardsNag && user && !user.is_reward_approved) { + if (sdkReady && this.state.usdExchangeRate > 0 && this.state.showRewardsNag && user && !user.is_reward_approved) { this.showRewardsAvailable(); } diff --git a/src/page/wallet/view.js b/src/page/wallet/view.js index 4996426..ed6e9a6 100644 --- a/src/page/wallet/view.js +++ b/src/page/wallet/view.js @@ -94,7 +94,7 @@ class WalletPage extends React.PureComponent { > {!rewardsNotInterested && (!balance || balance === 0) && } - +