Refactor navigation routes to include prefix and add new page components for admin hub, game lobby, game type, join private game, manage private subtask, manage subgroups, and team

This commit is contained in:
bobbert committed 2026-03-17 22:22:15 +00:00
1 parent 884f9e818b
commit 33f73105ad
32 files changed
+88 -77

No files matched your search

+12 -12
View File
@@ -2,18 +2,18 @@ import { Stack } from "expo-router";
export default function RootLayout() {
return (
<Stack initialRouteName="index">
<Stack.Screen name="index" options={{ headerShown: false }} />
<Stack.Screen name="login" options={{ title: "Login" }} />
<Stack.Screen name="register" options={{ title: "Register" }} />
<Stack.Screen name="game-type" options={{ title: "Select Game Type" }} />
<Stack.Screen name="join-private-game" options={{ title: "Join Private Game" }} />
<Stack.Screen name="manage-private-subtask" options={{ title: "Manage Private Game" }} />
<Stack.Screen name="game-lobby" options={{ title: "Game Lobby" }} />
<Stack.Screen name="team" options={{ title: "Team" }} />
<Stack.Screen name="map" options={{ title: "Map" }} />
<Stack.Screen name="admin-hub" options={{ title: "Admin Hub" }} />
<Stack.Screen name="manage-subgroups" options={{ title: "Manage Subgroups" }} />
<Stack initialRouteName="(routes)/index">
<Stack.Screen name="(routes)/index" options={{ headerShown: false }} />
<Stack.Screen name="(routes)/login" options={{ title: "Login" }} />
<Stack.Screen name="(routes)/register" options={{ title: "Register" }} />
<Stack.Screen name="(routes)/game-type" options={{ title: "Select Game Type" }} />
<Stack.Screen name="(routes)/join-private-game" options={{ title: "Join Private Game" }} />
<Stack.Screen name="(routes)/manage-private-subtask" options={{ title: "Manage Private Game" }} />
<Stack.Screen name="(routes)/game-lobby" options={{ title: "Game Lobby" }} />
<Stack.Screen name="(routes)/team" options={{ title: "Team" }} />
<Stack.Screen name="(routes)/map" options={{ title: "Map" }} />
<Stack.Screen name="(routes)/admin-hub" options={{ title: "Admin Hub" }} />
<Stack.Screen name="(routes)/manage-subgroups" options={{ title: "Manage Subgroups" }} />
</Stack>
);
}