Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/page-modules/departures/stop-place/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ import {
} from '@atb/modules/transport-mode';
import { SearchTime, searchTimeToQueryString } from '@atb/modules/search-time';
import { DatePagination } from './date-pagination';
import { MessageBox } from '@atb/components/message-box';

const NUMBER_OF_DEPARTURES = 7;

Expand Down Expand Up @@ -132,6 +133,9 @@ export function StopPlace({ departures, fromQuery }: StopPlaceProps) {
navigateSearchTime(changeDay(searchTime, days))
}
/>
{departures.stopPlace.quays.length === 0 && (
<MessageBox type="info" message={t(Departures.stopPlace.noQuays)} />
)}
{departures.stopPlace.quays.map((quay) => (
<EstimatedCallList
key={`${quay.id}-${searchTimeKey(searchTime)}`}
Expand Down
5 changes: 5 additions & 0 deletions src/translations/pages/departures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ const DeparturesInternal = {
'No departures in the selected period of time.',
'Ingen avgangar i dette tidsrommet.',
),
noQuays: _(
'Ingen avganger fra denne holdeplassen.',
'No departures from this stop place.',
'Ingen avgangar frå denne haldeplassen.',
),
dateNavigation: {
today: _('I dag', 'Today', 'I dag'),
a11yNextDayHint: _(
Expand Down
Loading