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