mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
FIX: Background color for TotalBalanceVIew
This commit is contained in:
parent
e2e77a6744
commit
d491d9d7a8
2 changed files with 12 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
|||
import { DrawerContentScrollView } from '@react-navigation/drawer';
|
||||
import { NavigationProp, ParamListBase, useIsFocused } from '@react-navigation/native';
|
||||
import React, { memo, useCallback, useEffect, useMemo, useReducer, useRef } from 'react';
|
||||
import { InteractionManager, LayoutAnimation, StyleSheet, ViewStyle } from 'react-native';
|
||||
import { InteractionManager, LayoutAnimation, StyleSheet, View, ViewStyle } from 'react-native';
|
||||
|
||||
import triggerHapticFeedback, { HapticFeedbackTypes } from '../../blue_modules/hapticFeedback';
|
||||
import { TWallet } from '../../class/wallets/types';
|
||||
|
@ -146,7 +146,11 @@ const DrawerList: React.FC<DrawerListProps> = memo(({ navigation }) => {
|
|||
showsVerticalScrollIndicator={false}
|
||||
>
|
||||
<Header leftText={loc.wallets.list_title} onNewWalletPress={onNewWalletPress} isDrawerList />
|
||||
{isTotalBalanceEnabled && <TotalWalletsBalance />}
|
||||
{isTotalBalanceEnabled && (
|
||||
<View style={stylesHook.root}>
|
||||
<TotalWalletsBalance />
|
||||
</View>
|
||||
)}
|
||||
<WalletsCarousel
|
||||
data={state.wallets}
|
||||
extraData={[state.wallets]}
|
||||
|
|
|
@ -296,14 +296,18 @@ const WalletsList: React.FC = () => {
|
|||
case WalletsListSections.TRANSACTIONS:
|
||||
return renderListHeaderComponent();
|
||||
case WalletsListSections.CAROUSEL: {
|
||||
return !isLargeScreen && isTotalBalanceEnabled ? <TotalWalletsBalance /> : null;
|
||||
return !isLargeScreen && isTotalBalanceEnabled ? (
|
||||
<View style={stylesHook.walletsListWrapper}>
|
||||
<TotalWalletsBalance />
|
||||
</View>
|
||||
) : null;
|
||||
}
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
},
|
||||
[isLargeScreen, isTotalBalanceEnabled, renderListHeaderComponent],
|
||||
[isLargeScreen, isTotalBalanceEnabled, renderListHeaderComponent, stylesHook.walletsListWrapper],
|
||||
);
|
||||
|
||||
const renderSectionFooter = useCallback(
|
||||
|
|
Loading…
Add table
Reference in a new issue