Skip to content

Commit 8db59fa

Browse files
binh-dam-ibigroupphilip-cline
authored andcommitted
refactor(upcoming-trip-renderer): removed redundant tripTime
1 parent 026c5a2 commit 8db59fa

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: i18n/en-US.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ components:
352352
description: Unsnooze trip monitoring to see the updated status.
353353
heading: Trip monitoring is snoozed for today
354354
upcoming:
355-
nextTripBegins: Next trip starts on {tripDate, date, ::eeeee yyyyMMdd} at {tripTime, time, short}.
355+
nextTripBegins: Next trip starts on {tripDatetime, date, ::eeeee yyyyMMdd} at {tripDatetime, time, short}.
356356
tripBegins: Trip is due to begin at {tripStart, time, short}. (Realtime monitoring will begin at {monitoringStart, time, short}.)
357357
tripStartIsDelayed: Trip start time is delayed ${duration}!
358358
tripStartIsEarly: Trip start time is happening ${duration} earlier than expected!

Diff for: lib/components/user/monitored-trip/trip-status-rendering-strategies/upcoming-trip-renderer.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@ export default function upcomingTripRenderer ({
4848
<FormattedMessage
4949
id='components.TripStatusRenderers.upcoming.nextTripBegins'
5050
values={{
51-
// FIXME: pass a single date value and a single date/time format.
52-
tripDate: tripStart,
53-
tripTime: tripStart
51+
tripDatetime: tripStart
5452
}}
5553
/>
5654
)

0 commit comments

Comments
 (0)