From 17e338cc2b4e343a66beef859cda24dd61222f60 Mon Sep 17 00:00:00 2001 From: miles-grant-ibigroup Date: Fri, 13 Oct 2023 09:48:08 -0400 Subject: [PATCH] address pr feedback --- example-config.yml | 2 +- lib/components/viewers/realtime-status-label.tsx | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/example-config.yml b/example-config.yml index 6fa37cf94..9e3a482e7 100644 --- a/example-config.yml +++ b/example-config.yml @@ -350,7 +350,7 @@ itinerary: # a gray background disableMetroSeperatorDot: false # Show the number of minutes of delay or early beneath a time in the itinerary body - showLateness: true + showScheduleDeviation: true # Shows the duration of a leg below the leg in the metro itinerary summary showLegDurations: false # The sort option to use by default diff --git a/lib/components/viewers/realtime-status-label.tsx b/lib/components/viewers/realtime-status-label.tsx index b4afaeddf..428daedec 100644 --- a/lib/components/viewers/realtime-status-label.tsx +++ b/lib/components/viewers/realtime-status-label.tsx @@ -66,7 +66,7 @@ const RealtimeStatusLabel = ({ isRealtime, onTimeThresholdSeconds, originalTime, - showLateness, + showScheduleDeviation, time, withBackground }: { @@ -75,7 +75,7 @@ const RealtimeStatusLabel = ({ isRealtime?: boolean onTimeThresholdSeconds?: number originalTime?: number - showLateness?: boolean + showScheduleDeviation?: boolean time?: number withBackground?: boolean }): JSX.Element => { @@ -119,7 +119,7 @@ const RealtimeStatusLabel = ({ withBackground={withBackground} > {renderedTime} - {showLateness && ( + {showScheduleDeviation && ( ({ onTimeThresholdSeconds: state.otp.config.onTimeThresholdSeconds, - showLateness: state.otp.config.showLateness + showScheduleDeviation: state.otp.config.showScheduleDeviation }) export default connect(mapStateToProps)(RealtimeStatusLabel)