mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Background color
This commit is contained in:
parent
52e6188d78
commit
3af893dd41
@ -1,6 +1,6 @@
|
||||
import React, { useCallback, useState, useContext } from 'react';
|
||||
import { ActivityIndicator, FlatList, StyleSheet, View } from 'react-native';
|
||||
import { useFocusEffect, useRoute } from '@react-navigation/native';
|
||||
import { useFocusEffect, useRoute, useTheme } from '@react-navigation/native';
|
||||
import Privacy from '../../blue_modules/Privacy';
|
||||
import { BlueStorageContext } from '../../blue_modules/storage-context';
|
||||
import loc from '../../loc';
|
||||
@ -78,6 +78,14 @@ const WalletAddresses = () => {
|
||||
|
||||
const walletInstance = wallet.type === WatchOnlyWallet.type ? wallet._hdWalletInstance : wallet;
|
||||
|
||||
const { colors } = useTheme();
|
||||
|
||||
const stylesHook = StyleSheet.create({
|
||||
root: {
|
||||
backgroundColor: colors.elevated,
|
||||
},
|
||||
});
|
||||
|
||||
const getAddresses = () => {
|
||||
const addressList = [];
|
||||
|
||||
@ -109,11 +117,11 @@ const WalletAddresses = () => {
|
||||
|
||||
const render = () => {
|
||||
if (showAddresses) {
|
||||
return <FlatList data={addresses} renderItem={item => <AddressItem {...item} balanceUnit={balanceUnit} />} />;
|
||||
return <FlatList style={stylesHook.root} data={addresses} renderItem={item => <AddressItem {...item} balanceUnit={balanceUnit} />} />;
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={styles.loading}>
|
||||
<View style={[stylesHook.root, styles.loading]}>
|
||||
<ActivityIndicator />
|
||||
</View>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user