Update icons with pointerEvents="none" and upgrade lucide-react-native to v0.563.0

This commit is contained in:
2026-02-17 10:22:18 +01:00
parent cded5e8f00
commit 68e25fac71
27 changed files with 106 additions and 128 deletions

View File

@@ -84,7 +84,7 @@ export default function AutomationDetailScreen() {
if (!area) {
return (
<View className="flex-1 items-center justify-center">
<WifiOff size={48} color="#9ca3af" />
<WifiOff size={48} color="#9ca3af" pointerEvents="none" />
<Text className="text-xl text-gray-600 font-bold mt-4">Area non trovata</Text>
<Text className="text-gray-400 text-center mt-2 mb-4">L'area che stai cercando non esiste o è stata rimossa.</Text>
<TouchableOpacity onPress={() => router.back()} className="mt-4 bg-[#099499] px-6 py-3 rounded-xl active:scale-95">
@@ -101,7 +101,7 @@ export default function AutomationDetailScreen() {
<View className="flex-row justify-between items-center">
<View className='flex-row items-center gap-4'>
<TouchableOpacity onPress={() => router.back()} className='rounded-full active:bg-gray-100'>
<ChevronLeft size={28} color="#4b5563" />
<ChevronLeft size={28} color="#4b5563" pointerEvents="none" />
</TouchableOpacity>
<Text className="text-2xl font-bold text-gray-800">{area.name}</Text>
</View>
@@ -122,7 +122,7 @@ export default function AutomationDetailScreen() {
</View>
) : (
<View className="items-center">
<ServerOff size={48} color="#9ca3af" />
<ServerOff size={48} color="#9ca3af" pointerEvents="none" />
<Text className="text-lg text-gray-500 font-medium mt-4">Nessun dispositivo</Text>
<Text className="text-center text-gray-400 mt-2">
Non ci sono dispositivi in quest'area.

View File

@@ -95,7 +95,7 @@ export default function AutomationScreen() {
contentContainerClassName="flex-grow items-center justify-center pb-[100px]"
refreshControl={<RefreshControl refreshing={refreshing} onRefresh={onRefresh} colors={['#099499']} tintColor={'#099499'} />}
>
<WifiOff size={48} color="#9ca3af" />
<WifiOff size={48} color="#9ca3af" pointerEvents="none" />
<Text className="text-lg text-gray-500 font-medium mt-4">Errore di connessione</Text>
<Text className="text-center text-gray-400 mt-2 px-10">
{connectionStatus.message}
@@ -162,7 +162,7 @@ export default function AutomationScreen() {
>
<View className="flex-1 justify-between">
<View className={`${bgColor} w-14 h-14 items-center justify-center rounded-2xl`}>
<IconComponent size={32} />
<IconComponent size={32} pointerEvents="none" />
</View>
<View>
<Text
@@ -182,7 +182,7 @@ export default function AutomationScreen() {
</View>
) : (
<View className="mt-20 items-center justify-center">
<WifiOff size={48} color="#9ca3af" />
<WifiOff size={48} color="#9ca3af" pointerEvents="none" />
<Text className="text-lg text-gray-500 font-medium mt-4">Nessuna area trovata</Text>
<Text className="text-center text-gray-400 mt-2">
{`Nessuna area per il piano "${selectedFloor}"`}