update text for signed in users #89
1 changed files with 10 additions and 4 deletions
|
@ -13,15 +13,21 @@ class WalletRewardsDriver extends React.PureComponent<Props> {
|
||||||
<Icon name="award" size={16} style={walletStyle.rewardIcon} />
|
<Icon name="award" size={16} style={walletStyle.rewardIcon} />
|
||||||
{signedIn && (
|
{signedIn && (
|
||||||
<Text style={walletStyle.rewardDriverText}>
|
<Text style={walletStyle.rewardDriverText}>
|
||||||
{unclaimedRewardAmount > 0 ? unclaimedRewardAmount : ''} free credit{unclaimedRewardAmount === 1 ? '' : 's'}{' '}
|
{unclaimedRewardAmount === 0 && __('Free credits available in rewards.')}
|
||||||
available in rewards. Tap to learn more.
|
{unclaimedRewardAmount === 1 &&
|
||||||
|
__('%amount% free credit available in rewards.', { amount: unclaimedRewardAmount })}
|
||||||
|
{unclaimedRewardAmount > 1 &&
|
||||||
|
__('%amount% free credits available in rewards.', { amount: unclaimedRewardAmount })}{' '}
|
||||||
|
{__('Tap to learn more.')}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!signedIn && (
|
{!signedIn && (
|
||||||
<Text style={walletStyle.rewardDriverText}>
|
<Text style={walletStyle.rewardDriverText}>
|
||||||
Get {unclaimedRewardAmount > 0 ? unclaimedRewardAmount : ''} free credit
|
{unclaimedRewardAmount === 1 &&
|
||||||
{unclaimedRewardAmount === 1 ? '' : 's'} after creating an account.
|
__('Get %amount% free credit after creating an account.', { amount: unclaimedRewardAmount })}
|
||||||
|
{unclaimedRewardAmount !== 1 &&
|
||||||
|
__('Get %amount% free credits after creating an account.', { amount: unclaimedRewardAmount })}
|
||||||
</Text>
|
</Text>
|
||||||
)}
|
)}
|
||||||
</TouchableOpacity>
|
</TouchableOpacity>
|
||||||
|
|
Loading…
Reference in a new issue