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

@@ -10,21 +10,21 @@ const DeviceCard = ({ device, onToggle }: { device: HaEntity; onToggle: (entityI
switch (domain) {
case 'light':
return <Lightbulb size={32} color="#f59e0b" />;
return <Lightbulb size={32} color="#f59e0b" pointerEvents="none" />;
case 'switch':
return <Power size={32} color="#3b82f6" />;
return <Power size={32} color="#3b82f6" pointerEvents="none" />;
case 'sensor':
return <Cpu size={32} color="#ef4444" />;
return <Cpu size={32} color="#ef4444" pointerEvents="none" />;
case 'lock':
return <Lock size={32} color="#10b981" />;
return <Lock size={32} color="#10b981" pointerEvents="none" />;
case 'fan':
return <Fan size={32} color="#6b7280" />;
return <Fan size={32} color="#6b7280" pointerEvents="none" />;
case 'camera':
return <Cctv size={32} color="#8b5cf6" />;
return <Cctv size={32} color="#8b5cf6" pointerEvents="none" />;
case 'weather':
return <CloudSun size={32} color="#3b82f6" />;
return <CloudSun size={32} color="#3b82f6" pointerEvents="none" />;
default:
return <Zap size={32} color="#8b5cf6" />;
return <Zap size={32} color="#8b5cf6" pointerEvents="none" />;
}
};