Update tabBarIcon sizes, use FlatList for invoices and refactor QrScanModal layout

This commit is contained in:
2026-08-31 17:37:54 +02:00
parent ccbc8d62c5
commit 8ce26da0c5
4 changed files with 71 additions and 50 deletions
+7 -6
View File
@@ -43,35 +43,35 @@ export default function ProtectedLayout() {
name="index"
options={{
title: 'Home',
tabBarIcon: ({ color, size }) => <Home pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <Home pointerEvents="none" color={color} size={28} />,
}}
/>
<Tabs.Screen
name="attendance/index"
options={{
title: 'Presenze',
tabBarIcon: ({ color, size }) => <Clock pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <Clock pointerEvents="none" color={color} size={28} />,
}}
/>
<Tabs.Screen
name="journal"
options={{
title: 'Giornale',
tabBarIcon: ({ color, size }) => <ImageIcon pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <ImageIcon pointerEvents="none" color={color} size={28} />,
}}
/>
<Tabs.Screen
name="permits/index"
options={{
title: 'Ferie',
tabBarIcon: ({ color, size }) => <CalendarIcon pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <CalendarIcon pointerEvents="none" color={color} size={28} />,
}}
/>
<Tabs.Screen
name="invoice"
options={{
title: 'Fatture',
tabBarIcon: ({ color, size }) => <FileText pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <FileText pointerEvents="none" color={color} size={28} />,
href: authState.user?.isAdmin ? undefined : null,
}}
/>
@@ -79,7 +79,7 @@ export default function ProtectedLayout() {
name="machine/index"
options={{
title: 'Macchine',
tabBarIcon: ({ color, size }) => <Car pointerEvents="none" color={color} size={24} />,
tabBarIcon: ({ color, size }) => <Car pointerEvents="none" color={color} size={28} />,
href: !authState.user?.isAdmin ? undefined : null,
}}
/>
@@ -88,6 +88,7 @@ export default function ProtectedLayout() {
options={{
href: null,
title: 'Profilo',
tabBarStyle: { display: 'none' },
}}
/>
</Tabs>