mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-02-23 15:20:55 +01:00
Revert "Update ManageWalletsListItem.tsx"
This reverts commit 555ba1d9ea
.
This commit is contained in:
parent
555ba1d9ea
commit
010b99a11b
1 changed files with 9 additions and 3 deletions
|
@ -104,8 +104,11 @@ const ManageWalletsListItem: React.FC<ManageWalletsListItemProps> = ({
|
|||
[handleToggleHideBalance, item.data],
|
||||
);
|
||||
|
||||
const leftContent = (reset: () => void) => (
|
||||
<LeftSwipeContent onPress={() => handleLeftPress(reset)} hideBalance={(item.data as TWallet).hideBalance} colors={colors} />
|
||||
const leftContent = useCallback(
|
||||
(reset: () => void) => (
|
||||
<LeftSwipeContent onPress={() => handleLeftPress(reset)} hideBalance={(item.data as TWallet).hideBalance} colors={colors} />
|
||||
),
|
||||
[colors, handleLeftPress, item.data],
|
||||
);
|
||||
|
||||
const handleRightPress = useCallback(
|
||||
|
@ -116,7 +119,10 @@ const ManageWalletsListItem: React.FC<ManageWalletsListItemProps> = ({
|
|||
[handleDeleteWallet, item.data],
|
||||
);
|
||||
|
||||
const rightContent = (reset: () => void) => <RightSwipeContent onPress={() => handleRightPress(reset)} />;
|
||||
const rightContent = useCallback(
|
||||
(reset: () => void) => <RightSwipeContent onPress={() => handleRightPress(reset)} />,
|
||||
[handleRightPress],
|
||||
);
|
||||
|
||||
if (isLoading) {
|
||||
return <ActivityIndicator size="large" color={colors.brandingColor} />;
|
||||
|
|
Loading…
Add table
Reference in a new issue