FIX: handle platform-specific icon compatibility for delete button (#7530)

This commit is contained in:
thisames 2025-01-24 22:28:45 -03:00 committed by GitHub
parent fe37bcb9fd
commit 8b32825e73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,5 @@
import React, { useCallback, useState } from 'react';
import { View, StyleSheet, ViewStyle, TouchableOpacity, ActivityIndicator } from 'react-native';
import { View, StyleSheet, ViewStyle, TouchableOpacity, ActivityIndicator, Platform } from 'react-native';
import { Icon, ListItem } from '@rneui/base';
import { ExtendedTransaction, LightningTransaction, TWallet } from '../class/wallets/types';
import { WalletCarouselItem } from './WalletsCarousel';
@ -66,7 +66,7 @@ const RightSwipeContent: React.FC<Partial<SwipeContentProps>> = ({ onPress }) =>
accessibilityRole="button"
accessibilityLabel="Delete Wallet"
>
<Icon name="delete-outline" color="#FFFFFF" />
<Icon name={Platform.OS === 'android' ? 'delete' : 'delete-outline'} color="#FFFFFF" />
</TouchableOpacity>
);