Skip to content

Commit

Permalink
Dispaly notices from toEstimatedCall.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbrunvoll committed Aug 19, 2024
1 parent 4cf839b commit ec32c4c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/types/generated/TripsQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export type TripFragment = {
quay: {publicCode?: string; name: string};
notices: Array<{id: string; text?: string}>;
};
toEstimatedCall?: {
notices: Array<{id: string; text?: string}>;
};
situations: Array<{
id: string;
situationNumber?: string;
Expand Down
3 changes: 3 additions & 0 deletions src/api/types/generated/fragments/trips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ export type TripPatternFragment = {
quay: {publicCode?: string; name: string};
notices: Array<{id: string; text?: string}>;
};
toEstimatedCall?: {
notices: Array<{id: string; text?: string}>;
};
situations: Array<{
id: string;
situationNumber?: string;
Expand Down
1 change: 1 addition & 0 deletions src/travel-details-screens/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export const getNoticesForLeg = (leg: Leg) =>
...(leg.serviceJourney?.notices || []),
...(leg.serviceJourney?.journeyPattern?.notices || []),
...(leg.fromEstimatedCall?.notices || []),
...(leg.toEstimatedCall?.notices || []),
]);

export const getNoticesForServiceJourney = (
Expand Down

0 comments on commit ec32c4c

Please sign in to comment.