From 1148b7f569a73d3184209d510258114b564aa778 Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Wed, 27 Mar 2024 13:05:55 -0400 Subject: [PATCH] fix: fix bug where you couldnt directly navigate to task list if it wasnt loaded --- client/navigation/types.ts | 1 + client/screens/Profile/Profile.tsx | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/client/navigation/types.ts b/client/navigation/types.ts index 320ce2f..8b07cdf 100644 --- a/client/navigation/types.ts +++ b/client/navigation/types.ts @@ -14,6 +14,7 @@ export type AppStackParamList = { TaskType: undefined; TaskDisplay: { id: number }; TaskList: undefined; + CalendarContainer: { screen: string; params: { screen: string } } | undefined; CalendarTopNav: undefined; TaskCreation: { taskType: string }; }; diff --git a/client/screens/Profile/Profile.tsx b/client/screens/Profile/Profile.tsx index 2a04674..e4dd0a7 100644 --- a/client/screens/Profile/Profile.tsx +++ b/client/screens/Profile/Profile.tsx @@ -61,7 +61,12 @@ export default function Profile() { /> navigation.navigate('TaskList')} + onTouchEnd={() => { + navigation.navigate('CalendarContainer', { + screen: 'CalendarTopNav', + params: { screen: 'TaskList' } + }); + }} >