Add backup warning to wallet page. Sort subscriptions.

This commit is contained in:
Akinwale Ariwodola 2019-01-08 18:39:10 +01:00
parent c96b4afcc7
commit 847c3e85fa
3 changed files with 25 additions and 9 deletions

View file

@ -26,7 +26,7 @@ class SubscriptionsPage extends React.PureComponent {
doFetchRecommendedSubscriptions
} = this.props;
doFetchMySubscriptions();
doFetchRecommendedSubscriptions();
//doFetchRecommendedSubscriptions();
}
render() {
@ -63,7 +63,9 @@ class SubscriptionsPage extends React.PureComponent {
navigation={navigation} />
)
}
data={allSubscriptions}
data={allSubscriptions.sort((a, b) => {
return b.height - a.height;
})}
keyExtractor={(item, index) => uriFromFileInfo(item)} />}
{hasSubscriptions && loading &&

View file

@ -1,12 +1,13 @@
import React from 'react';
import { ScrollView, Text, View } from 'react-native';
import TransactionListRecent from '../../component/transactionListRecent';
import WalletAddress from '../../component/walletAddress';
import WalletBalance from '../../component/walletBalance';
import WalletSend from '../../component/walletSend';
import Button from '../../component/button';
import Constants from '../../constants';
import walletStyle from '../../styles/wallet';
import TransactionListRecent from 'component/transactionListRecent';
import WalletAddress from 'component/walletAddress';
import WalletBalance from 'component/walletBalance';
import WalletSend from 'component/walletSend';
import Button from 'component/button';
import Link from 'component/link'
import Constants from 'constants';
import walletStyle from 'styles/wallet';
class WalletPage extends React.PureComponent {
render() {
@ -28,6 +29,12 @@ class WalletPage extends React.PureComponent {
return (
<ScrollView keyboardShouldPersistTaps={'handled'}>
<View style={walletStyle.warningCard}>
<Text style={walletStyle.warningText}>
Please backup your wallet file using the instructions at <Link style={walletStyle.warningText} text="https://lbry.io/faq/how-to-backup-wallet#android" href="https://lbry.io/faq/how-to-backup-wallet#android" />.
</Text>
</View>
<WalletBalance />
<WalletAddress />
<WalletSend />

View file

@ -33,6 +33,13 @@ const walletStyle = StyleSheet.create({
marginRight: 16,
padding: 16
},
warningCard: {
backgroundColor: Colors.Orange,
padding: 16,
marginLeft: 16,
marginTop: 16,
marginRight: 16
},
transactionsCard: {
backgroundColor: '#ffffff',
margin: 16