From f09269d48a496c2fc5959ed1cd45e7921a970971 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 25 Oct 2019 15:14:06 +0100 Subject: [PATCH] rewards page and rewards driver changes --- src/component/channelRewardsDriver/view.js | 4 +++- src/component/publishRewardsDriver/view.js | 4 +++- src/component/rewardEnrolment/view.js | 22 ++++++++++++++++------ src/component/rewardSummary/view.js | 4 ++-- src/component/walletRewardsDriver/index.js | 7 ++++++- src/component/walletRewardsDriver/view.js | 7 +++++-- src/styles/reward.js | 9 +++++---- 7 files changed, 40 insertions(+), 17 deletions(-) diff --git a/src/component/channelRewardsDriver/view.js b/src/component/channelRewardsDriver/view.js index f83c3af..3f7e228 100644 --- a/src/component/channelRewardsDriver/view.js +++ b/src/component/channelRewardsDriver/view.js @@ -11,7 +11,9 @@ class ChannelRewardsDriver extends React.PureComponent { return ( navigation.navigate('Rewards')}> - Earn some credits to be able to create your channel. + + Channel creation requires credits.{'\n'}Tap here to get some for free. + ); } diff --git a/src/component/publishRewardsDriver/view.js b/src/component/publishRewardsDriver/view.js index a225d6e..13975b3 100644 --- a/src/component/publishRewardsDriver/view.js +++ b/src/component/publishRewardsDriver/view.js @@ -11,7 +11,9 @@ class PublishRewardsDriver extends React.PureComponent { return ( navigation.navigate('Rewards')}> - Earn some credits to be able to publish your content. + + Publishing requires credits.{'\n'}Tap here to get some for free. + ); } diff --git a/src/component/rewardEnrolment/view.js b/src/component/rewardEnrolment/view.js index 16552c8..f9e74b0 100644 --- a/src/component/rewardEnrolment/view.js +++ b/src/component/rewardEnrolment/view.js @@ -1,8 +1,8 @@ import React from 'react'; -import { NativeModules, Text, TouchableOpacity, View } from 'react-native'; +import { Linking, NativeModules, Text, TouchableOpacity, View } from 'react-native'; import AsyncStorage from '@react-native-community/async-storage'; import Button from 'component/button'; -import Constants from 'constants'; +import Constants from 'constants'; // eslint-disable-line node/no-deprecated-api import Link from 'component/link'; import Colors from 'styles/colors'; import Icon from 'react-native-vector-icons/FontAwesome5'; @@ -24,6 +24,10 @@ class RewardEnrolment extends React.Component { navigation.navigate({ routeName: 'Verification', key: 'verification', params: { syncFlow: false } }); }; + onLearnMorePressed = () => { + Linking.openURL('https://lbry.com/faq/earn-credits'); + }; + render() { const { fetching, navigation, unclaimedRewardAmount, user } = this.props; @@ -31,19 +35,25 @@ class RewardEnrolment extends React.Component { - {unclaimedRewardAmount} unclaimed credits + {unclaimedRewardAmount} available credits - LBRY credits allow you to purchase content, publish content, and influence the network. You can start - earning credits by watching videos on LBRY. + LBRY credits allow you to purchase content, publish content, and influence the network.{'\n\n'} + You get credits for free for providing an email address and taking other basic actions.{'\n\n'} + . -