Skip to content

Commit

Permalink
fix: fix bug where you couldnt directly navigate to task list if it w…
Browse files Browse the repository at this point in the history
…asnt loaded
  • Loading branch information
MattCMcCoy committed Mar 27, 2024
1 parent 5122d3b commit 1148b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions client/navigation/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
};
Expand Down
7 changes: 6 additions & 1 deletion client/screens/Profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ export default function Profile() {
/>
<View
className="mt-5 flex items-center pb-5"
onTouchEnd={() => navigation.navigate('TaskList')}
onTouchEnd={() => {
navigation.navigate('CalendarContainer', {
screen: 'CalendarTopNav',
params: { screen: 'TaskList' }
});
}}
>
<UserTaskStatusCard userID={activeUser} />
</View>
Expand Down

0 comments on commit 1148b7f

Please sign in to comment.