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' } + }); + }} >