Update icons with pointerEvents="none" and upgrade lucide-react-native to v0.563.0
This commit is contained in:
@@ -135,7 +135,7 @@ export default function SiteDocumentsScreen() {
|
||||
<SafeAreaView edges={['top']} className='pt-5'>
|
||||
<View className='flex-row items-center gap-4'>
|
||||
<TouchableOpacity onPress={() => router.back()} className="p-2 -ml-2 rounded-full active:bg-gray-100">
|
||||
<ChevronLeft size={28} color="#4b5563" />
|
||||
<ChevronLeft size={28} color="#4b5563" pointerEvents="none" />
|
||||
</TouchableOpacity>
|
||||
|
||||
<View className="flex-1">
|
||||
@@ -168,7 +168,7 @@ export default function SiteDocumentsScreen() {
|
||||
<View className="flex-row gap-2">
|
||||
<View className="flex-1 relative justify-center">
|
||||
<View className="absolute left-4 z-10">
|
||||
<Search size={24} color="#9ca3af" />
|
||||
<Search size={24} color="#9ca3af" pointerEvents="none" />
|
||||
</View>
|
||||
<TextInput
|
||||
placeholder="Cerca documento..."
|
||||
@@ -183,7 +183,7 @@ export default function SiteDocumentsScreen() {
|
||||
onPress={() => setShowRangePicker(true)}
|
||||
className={`p-4 bg-white rounded-2xl shadow-sm border ${range.startDate ? 'border-[#099499]' : 'border-gray-200'}`}
|
||||
>
|
||||
<CalendarIcon size={24} color={range.startDate ? "#099499" : "#9ca3af"} />
|
||||
<CalendarIcon size={24} color={range.startDate ? "#099499" : "#9ca3af"} pointerEvents="none" />
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
|
||||
@@ -206,7 +206,7 @@ export default function SiteDocumentsScreen() {
|
||||
<View key={doc.id} className="bg-white p-5 rounded-3xl shadow-sm flex-row items-center justify-between border border-gray-100">
|
||||
<View className="flex-row items-center gap-5 flex-1">
|
||||
<View className="bg-red-50 p-4 rounded-2xl">
|
||||
<FileText size={32} color="#ef4444" />
|
||||
<FileText size={32} color="#ef4444" pointerEvents="none" />
|
||||
</View>
|
||||
<View className="flex-1">
|
||||
<Text className="font-bold text-gray-800 text-lg mb-1">{doc.title}</Text>
|
||||
@@ -216,7 +216,7 @@ export default function SiteDocumentsScreen() {
|
||||
<TouchableOpacity
|
||||
onPress={() => handleDownloadAndShare(doc.mimetype, doc.title, doc.url)}
|
||||
className="p-4 bg-gray-50 rounded-2xl active:bg-gray-100">
|
||||
<Download size={24} color="#6b7280" />
|
||||
<Download size={24} color="#6b7280" pointerEvents="none" />
|
||||
</TouchableOpacity>
|
||||
</View>
|
||||
))}
|
||||
@@ -232,7 +232,7 @@ export default function SiteDocumentsScreen() {
|
||||
onPress={() => setShowUploadModal(true)}
|
||||
className="absolute bottom-8 right-6 w-16 h-16 bg-[#099499] rounded-full shadow-lg items-center justify-center active:scale-90"
|
||||
>
|
||||
<Plus size={32} color="white" />
|
||||
<Plus size={32} color="white" pointerEvents="none" />
|
||||
</TouchableOpacity>
|
||||
|
||||
{/* Upload Document Modal */}
|
||||
|
||||
@@ -66,7 +66,7 @@ export default function SitesScreen() {
|
||||
{/* Search Bar */}
|
||||
<View className={`relative justify-center`}>
|
||||
<View className="absolute left-4 z-10">
|
||||
<Search size={24} color="#9ca3af" />
|
||||
<Search size={24} color="#9ca3af" pointerEvents="none" />
|
||||
</View>
|
||||
<TextInput
|
||||
placeholder="Cerca per codice o nome cantiere..."
|
||||
@@ -99,13 +99,13 @@ export default function SitesScreen() {
|
||||
>
|
||||
<View className="flex-row items-center gap-5 flex-1">
|
||||
<View className="bg-blue-50 p-4 rounded-2xl">
|
||||
<Building2 size={32} color="#2563eb" />
|
||||
<Building2 size={32} color="#2563eb" pointerEvents="none" />
|
||||
</View>
|
||||
<View className="flex-1">
|
||||
<Text className="text-base font-medium text-gray-400 mb-0.5">{site.code}</Text>
|
||||
<Text className="font-bold text-gray-800 text-lg mb-1">{site.name}</Text>
|
||||
<View className="flex-row items-center mt-1">
|
||||
<MapPin size={16} color="#9ca3af" />
|
||||
<MapPin size={16} color="#9ca3af" pointerEvents="none" />
|
||||
<Text className="text-sm text-gray-400 ml-1 font-medium">
|
||||
{site.attachments_count} Documenti disponibili
|
||||
</Text>
|
||||
@@ -113,7 +113,7 @@ export default function SitesScreen() {
|
||||
</View>
|
||||
</View>
|
||||
|
||||
<ChevronRight size={24} color="#9ca3af" />
|
||||
<ChevronRight size={24} color="#9ca3af" pointerEvents="none" />
|
||||
</TouchableOpacity>
|
||||
))}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user