Refactor MachineCard component and update API endpoints

This commit is contained in:
2026-08-03 10:58:16 +02:00
parent e49d6f0e5b
commit ccbc8d62c5
4 changed files with 12 additions and 43 deletions

View File

@@ -80,7 +80,7 @@ export default function ProtectedLayout() {
options={{
title: 'Macchine',
tabBarIcon: ({ color, size }) => <Car pointerEvents="none" color={color} size={24} />,
href: authState.user?.isAdmin ? undefined : null,
href: !authState.user?.isAdmin ? undefined : null,
}}
/>
<Tabs.Screen