feat : Structure de base

This commit is contained in:
Yaël Perret
2026-09-02 11:31:58 +02:00
parent 68d7ea3f9a
commit 4f8596881c
22 changed files with 579 additions and 2 deletions

View File

@@ -0,0 +1,12 @@
import { useAuth } from '@/stores/authStore';
import { Redirect, Stack } from 'expo-router';
export default function TabsLayout() {
const session = useAuth((state) => state.session);
if (!session) return <Redirect href="../(auth)/login" />;
if (session.role === 'org') return <Redirect href="../(org)" />;
return <Stack screenOptions={{ headerShown: false}} />;
}