- Refactor Profile and Login screens to use AuthContext for user data

- Enhance RequestPermitModal with multiple time-off types and validation
- Implement CalendarWidget for visualizing time-off requests
- Improve API error handling and token management
- Add utility functions for consistent date and time formatting
- Clean up unused mock data and update types
This commit is contained in:
2025-12-10 18:21:08 +01:00
parent 49b6ecadb2
commit b9807f6cc2
13 changed files with 503 additions and 343 deletions

View File

@ -64,6 +64,7 @@ export default function ProtectedLayout() {
tabBarIcon: ({ color, size }) => <FileText color={color} size={24} />,
}}
/>
{/* // TODO: Rimuovere all'utente e mostrare solo a admin */}
<Tabs.Screen
name="automation"
options={{
@ -71,7 +72,7 @@ export default function ProtectedLayout() {
tabBarIcon: ({ color, size }) => <Zap color={color} size={24} />,
}}
/>
{/* TODO: Da rimuovere */}
{/* TODO: Dovrebbe essere rimosso, va rivisto layout */}
<Tabs.Screen
name="profile"
options={{