Display USD #135
3 changed files with 5 additions and 4 deletions
|
@ -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<Props> {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { claimsBalance, deviceWalletSynced, supportsBalance, tipsBalance } = this.props;
|
||||
const { claimsBalance, deviceWalletSynced, navigation, supportsBalance, tipsBalance } = this.props;
|
||||
|
||||
return (
|
||||
<View style={walletStyle.balanceExtra}>
|
||||
|
@ -67,7 +68,7 @@ class WalletBalanceExtra extends React.PureComponent<Props> {
|
|||
<Link
|
||||
style={walletStyle.earnTipsLink}
|
||||
onPress={() => {
|
||||
// navigation.navigate({ })
|
||||
navigation.navigate({ routeName: Constants.DRAWER_ROUTE_PUBLISH });
|
||||
}}
|
||||
text={__('Earn more tips by uploading cool videos')}
|
||||
/>
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ class WalletPage extends React.PureComponent {
|
|||
>
|
||||
{!rewardsNotInterested && (!balance || balance === 0) && <WalletRewardsDriver navigation={navigation} />}
|
||||
<WalletBalance />
|
||||
<WalletBalanceExtra />
|
||||
<WalletBalanceExtra navigation={navigation} />
|
||||
<WalletAddress />
|
||||
<WalletSend />
|
||||
<TransactionListRecent navigation={navigation} />
|
||||
|
|
Loading…
Reference in a new issue