Update ManageWalletsListItem.tsx

This commit is contained in:
Marcos Rodriguez Velez 2025-01-07 23:45:59 -04:00
parent 30ab6d7883
commit 555ba1d9ea

View file

@ -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} />;