diff --git a/packages/mobile/src/screens/HomeScreen.tsx b/packages/mobile/src/screens/HomeScreen.tsx index 730c5e888..d1015d14f 100644 --- a/packages/mobile/src/screens/HomeScreen.tsx +++ b/packages/mobile/src/screens/HomeScreen.tsx @@ -32,13 +32,13 @@ function sortSessions(sessions: DashboardSession[]): DashboardSession[] { } export default function HomeScreen({ navigation }: Props) { - const { sessions, stats, orchestratorId, loading, error, refresh } = useSessions(); + const { sessions, stats, loading, error, refresh } = useSessions(); useSessionNotifications(sessions); React.useLayoutEffect(() => { navigation.setOptions({ headerRight: () => ( - + navigation.navigate("SpawnSession")} style={{ flexDirection: "row", alignItems: "center", gap: 2 }} @@ -46,18 +46,7 @@ export default function HomeScreen({ navigation }: Props) { + Session - navigation.navigate("Commands")}> - {"\uD83D\uDCCB"} - - { - if (orchestratorId) { - navigation.navigate("SessionDetail", { sessionId: orchestratorId }); - } else { - navigation.navigate("Orchestrator"); - } - }} - > + navigation.navigate("Orchestrator")}> {"\uD83E\uDD16"} ), }); - }, [navigation, orchestratorId]); + }, [navigation]); const sorted = sortSessions(sessions);