Display USD #135

Merged
akinwale merged 5 commits from usd into master 2020-03-26 15:13:57 +01:00
3 changed files with 5 additions and 4 deletions
Showing only changes of commit 543a818002 - Show all commits

View file

@ -8,6 +8,7 @@ import Colors from 'styles/colors';
import Icon from 'react-native-vector-icons/FontAwesome5'; import Icon from 'react-native-vector-icons/FontAwesome5';
import Link from 'component/link'; import Link from 'component/link';
import walletStyle from 'styles/wallet'; import walletStyle from 'styles/wallet';
import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api
type Props = { type Props = {
claimsBalance: number, claimsBalance: number,
@ -29,7 +30,7 @@ class WalletBalanceExtra extends React.PureComponent<Props> {
} }
render() { render() {
const { claimsBalance, deviceWalletSynced, supportsBalance, tipsBalance } = this.props; const { claimsBalance, deviceWalletSynced, navigation, supportsBalance, tipsBalance } = this.props;
return ( return (
<View style={walletStyle.balanceExtra}> <View style={walletStyle.balanceExtra}>
@ -67,7 +68,7 @@ class WalletBalanceExtra extends React.PureComponent<Props> {
<Link <Link
style={walletStyle.earnTipsLink} style={walletStyle.earnTipsLink}
onPress={() => { onPress={() => {
// navigation.navigate({ }) navigation.navigate({ routeName: Constants.DRAWER_ROUTE_PUBLISH });
}} }}
text={__('Earn more tips by uploading cool videos')} text={__('Earn more tips by uploading cool videos')}
/> />

View file

@ -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(); this.showRewardsAvailable();
} }

View file

@ -94,7 +94,7 @@ class WalletPage extends React.PureComponent {
> >
{!rewardsNotInterested && (!balance || balance === 0) && <WalletRewardsDriver navigation={navigation} />} {!rewardsNotInterested && (!balance || balance === 0) && <WalletRewardsDriver navigation={navigation} />}
<WalletBalance /> <WalletBalance />
<WalletBalanceExtra /> <WalletBalanceExtra navigation={navigation} />
<WalletAddress /> <WalletAddress />
<WalletSend /> <WalletSend />
<TransactionListRecent navigation={navigation} /> <TransactionListRecent navigation={navigation} />