Refactor MachineCard component and update API endpoints
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user