Skip to content

Commit

Permalink
fix: 🐛 Corrige la navigation vers les articles depuis calendar
Browse files Browse the repository at this point in the history
  • Loading branch information
benguedj committed Dec 18, 2023
1 parent 1f841e1 commit 5bcfd15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
7 changes: 4 additions & 3 deletions front/src/navigation/BottomTabNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ const TabCalendarNavigator: FC = () => (
/>
<TabCalendarStack.Screen name="eventDetails" component={EventDetails} />
<TabCalendarStack.Screen name="article" component={ArticleDetail} />
<TabHomeStack.Screen name="parentheque" component={Parentheque} />
<TabCalendarStack.Screen name="articleSwipe" component={ArticleSwipe} />
<TabCalendarStack.Screen name="parentheque" component={Parentheque} />
<TabCalendarStack.Screen name="aroundMeScreen" component={AroundMeScreen} />
</TabCalendarStack.Navigator>
);
Expand All @@ -160,7 +161,7 @@ const TabSurveysNavigator: FC = () => (
component={TabSurveysScreen}
options={{}}
/>
<TabHomeStack.Screen name="parentheque" component={Parentheque} />
<TabSurveysStack.Screen name="parentheque" component={Parentheque} />
</TabSurveysStack.Navigator>
);

Expand All @@ -176,7 +177,7 @@ const TabSearchNavigator: FC = () => (
name="aroundMeMapAndList"
component={AroundMeMapAndList}
/>
<TabHomeStack.Screen name="parentheque" component={Parentheque} />
<TabSearchStack.Screen name="parentheque" component={Parentheque} />
</TabSearchStack.Navigator>
);

Expand Down
4 changes: 4 additions & 0 deletions front/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,14 @@ export type TabCalendarParamList = {
tabCalendarScreen: undefined;
eventDetails: { eventId: string };
article: { id: number; step?: Step };
articleSwipe: undefined;
parentheque: { documents?: Document[] };
aroundMeScreen: undefined;
};

export type TabSurveysParamList = {
tabSurveysScreen: undefined;
parentheque: { documents?: Document[] };
};

export type TabAroundMeParamList = {
Expand All @@ -63,6 +66,7 @@ export type TabSearchParamList = {
coordinates: LatLng;
displayUserLocation: boolean;
};
parentheque: { documents?: Document[] };
};

export type ArticleSwipeRouteParamList = {
Expand Down

0 comments on commit 5bcfd15

Please sign in to comment.