streamline reward summary
This commit is contained in:
parent
c5fca74e39
commit
f98d7c26dc
2 changed files with 14 additions and 7 deletions
|
@ -2,6 +2,8 @@ import React from 'react';
|
||||||
import { NativeModules, Text, TouchableOpacity, View } from 'react-native';
|
import { NativeModules, Text, TouchableOpacity, View } from 'react-native';
|
||||||
import AsyncStorage from '@react-native-community/async-storage';
|
import AsyncStorage from '@react-native-community/async-storage';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
|
import Colors from 'styles/colors';
|
||||||
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||||||
import rewardStyle from 'styles/reward';
|
import rewardStyle from 'styles/reward';
|
||||||
|
|
||||||
class RewardSummary extends React.Component {
|
class RewardSummary extends React.Component {
|
||||||
|
@ -58,9 +60,12 @@ class RewardSummary extends React.Component {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={rewardStyle.summaryContainer}>
|
<View style={rewardStyle.summaryContainer}>
|
||||||
<Text style={rewardStyle.summaryText}>
|
<View style={rewardStyle.summaryRow}>
|
||||||
You have {unclaimedRewardAmount} LBC in unclaimed rewards. LBC stands for LBRY Credits which are tokens that you can use in the digital marketplace. You have {this.state.actionsLeft} action{this.state.actionsLeft === 1 ? '' : 's'} left to claim your first reward.
|
<Icon name="award" size={36} color={Colors.White} />
|
||||||
</Text>
|
<Text style={rewardStyle.summaryText}>
|
||||||
|
{unclaimedRewardAmount} unclaimed credits
|
||||||
|
</Text>
|
||||||
|
</View>
|
||||||
<Button style={rewardStyle.dismissButton} theme={"light"} text={"Dismiss"} onPress={this.onDismissPressed} />
|
<Button style={rewardStyle.dismissButton} theme={"light"} text={"Dismiss"} onPress={this.onDismissPressed} />
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
|
|
|
@ -158,17 +158,19 @@ const rewardStyle = StyleSheet.create({
|
||||||
},
|
},
|
||||||
summaryContainer: {
|
summaryContainer: {
|
||||||
backgroundColor: Colors.LbryGreen,
|
backgroundColor: Colors.LbryGreen,
|
||||||
padding: 12,
|
padding: 16,
|
||||||
marginTop: 16,
|
marginTop: 16,
|
||||||
marginLeft: 16,
|
marginLeft: 16,
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
},
|
},
|
||||||
|
summaryRow: {
|
||||||
|
flexDirection: 'row'
|
||||||
|
},
|
||||||
summaryText: {
|
summaryText: {
|
||||||
color: Colors.White,
|
color: Colors.White,
|
||||||
fontFamily: 'Inter-UI-Regular',
|
fontFamily: 'Inter-UI-Regular',
|
||||||
fontSize: 16,
|
fontSize: 28,
|
||||||
lineHeight: 24,
|
marginLeft: 12
|
||||||
flex: 0.7
|
|
||||||
},
|
},
|
||||||
phoneVerificationContainer: {
|
phoneVerificationContainer: {
|
||||||
paddingLeft: 4,
|
paddingLeft: 4,
|
||||||
|
|
Loading…
Reference in a new issue