feat(mobile): refonte design DSFR complète + partie admin
- écrans auth/dashboard/journal/info/urgence/profil refondus sur le design system - AppBar institutionnel République Française sur tous les écrans - partie admin (utilisateurs, contenus, émotions) avec AdminGuard - entrée Espace administration dans le profil (admins uniquement) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import { Stack } from 'expo-router';
|
||||
import AdminGuard from '@/components/AdminGuard';
|
||||
import { Colors } from '@/lib/colors';
|
||||
|
||||
/** Pile de navigation de l'espace d'administration (protégée par AdminGuard). */
|
||||
export default function AdminLayout() {
|
||||
return (
|
||||
<AdminGuard>
|
||||
<Stack
|
||||
screenOptions={{
|
||||
headerStyle: { backgroundColor: Colors.white },
|
||||
headerTintColor: Colors.primary,
|
||||
headerTitleStyle: { fontWeight: '700', color: Colors.black },
|
||||
}}
|
||||
>
|
||||
<Stack.Screen name="index" options={{ title: 'Administration' }} />
|
||||
<Stack.Screen name="utilisateurs" options={{ title: 'Utilisateurs' }} />
|
||||
<Stack.Screen name="contenus" options={{ title: 'Contenus' }} />
|
||||
<Stack.Screen name="emotions" options={{ title: 'Émotions' }} />
|
||||
</Stack>
|
||||
</AdminGuard>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user