Update tabBarIcon sizes, use FlatList for invoices and refactor QrScanModal layout
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user