Add backup warning to wallet page. Sort subscriptions.
This commit is contained in:
parent
c96b4afcc7
commit
847c3e85fa
3 changed files with 25 additions and 9 deletions
|
@ -26,7 +26,7 @@ class SubscriptionsPage extends React.PureComponent {
|
||||||
doFetchRecommendedSubscriptions
|
doFetchRecommendedSubscriptions
|
||||||
} = this.props;
|
} = this.props;
|
||||||
doFetchMySubscriptions();
|
doFetchMySubscriptions();
|
||||||
doFetchRecommendedSubscriptions();
|
//doFetchRecommendedSubscriptions();
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
@ -63,7 +63,9 @@ class SubscriptionsPage extends React.PureComponent {
|
||||||
navigation={navigation} />
|
navigation={navigation} />
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
data={allSubscriptions}
|
data={allSubscriptions.sort((a, b) => {
|
||||||
|
return b.height - a.height;
|
||||||
|
})}
|
||||||
keyExtractor={(item, index) => uriFromFileInfo(item)} />}
|
keyExtractor={(item, index) => uriFromFileInfo(item)} />}
|
||||||
|
|
||||||
{hasSubscriptions && loading &&
|
{hasSubscriptions && loading &&
|
||||||
|
|
|
@ -1,12 +1,13 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { ScrollView, Text, View } from 'react-native';
|
import { ScrollView, Text, View } from 'react-native';
|
||||||
import TransactionListRecent from '../../component/transactionListRecent';
|
import TransactionListRecent from 'component/transactionListRecent';
|
||||||
import WalletAddress from '../../component/walletAddress';
|
import WalletAddress from 'component/walletAddress';
|
||||||
import WalletBalance from '../../component/walletBalance';
|
import WalletBalance from 'component/walletBalance';
|
||||||
import WalletSend from '../../component/walletSend';
|
import WalletSend from 'component/walletSend';
|
||||||
import Button from '../../component/button';
|
import Button from 'component/button';
|
||||||
import Constants from '../../constants';
|
import Link from 'component/link'
|
||||||
import walletStyle from '../../styles/wallet';
|
import Constants from 'constants';
|
||||||
|
import walletStyle from 'styles/wallet';
|
||||||
|
|
||||||
class WalletPage extends React.PureComponent {
|
class WalletPage extends React.PureComponent {
|
||||||
render() {
|
render() {
|
||||||
|
@ -28,6 +29,12 @@ class WalletPage extends React.PureComponent {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ScrollView keyboardShouldPersistTaps={'handled'}>
|
<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 />
|
<WalletBalance />
|
||||||
<WalletAddress />
|
<WalletAddress />
|
||||||
<WalletSend />
|
<WalletSend />
|
||||||
|
|
|
@ -33,6 +33,13 @@ const walletStyle = StyleSheet.create({
|
||||||
marginRight: 16,
|
marginRight: 16,
|
||||||
padding: 16
|
padding: 16
|
||||||
},
|
},
|
||||||
|
warningCard: {
|
||||||
|
backgroundColor: Colors.Orange,
|
||||||
|
padding: 16,
|
||||||
|
marginLeft: 16,
|
||||||
|
marginTop: 16,
|
||||||
|
marginRight: 16
|
||||||
|
},
|
||||||
transactionsCard: {
|
transactionsCard: {
|
||||||
backgroundColor: '#ffffff',
|
backgroundColor: '#ffffff',
|
||||||
margin: 16
|
margin: 16
|
||||||
|
|
Loading…
Reference in a new issue