refactor: update tab bar icons size, enhance QR scan modal layout, and remove unused icons
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="permits/index"
|
||||
options={{
|
||||
title: 'Permessi',
|
||||
tabBarIcon: ({ color, size }) => <CalendarIcon pointerEvents="none" color={color} size={24} />,
|
||||
tabBarIcon: ({ color, size }) => <CalendarIcon pointerEvents="none" color={color} size={28} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="sites"
|
||||
options={{
|
||||
title: 'Cantieri',
|
||||
tabBarIcon: ({ color, size }) => <Building pointerEvents="none" color={color} size={24} />,
|
||||
tabBarIcon: ({ color, size }) => <Building pointerEvents="none" color={color} size={28} />,
|
||||
}}
|
||||
/>
|
||||
<Tabs.Screen
|
||||
name="automation"
|
||||
options={{
|
||||
title: 'Domotica',
|
||||
tabBarIcon: ({ color, size }) => <Zap pointerEvents="none" color={color} size={24} />,
|
||||
tabBarIcon: ({ color, size }) => <Zap pointerEvents="none" color={color} size={28} />,
|
||||
href: authState.user?.role === 'Amministratore' ? undefined : null,
|
||||
}}
|
||||
/>
|
||||
@@ -80,6 +80,7 @@ export default function ProtectedLayout() {
|
||||
name="profile"
|
||||
options={{
|
||||
href: null,
|
||||
tabBarStyle: { display: 'none' },
|
||||
title: 'Profilo',
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user