Skip to content

Commit

Permalink
address pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Oct 18, 2023
1 parent 17e338c commit a5f3115
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/components/viewers/realtime-status-label.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { InvisibleAdditionalDetails } from '@opentripplanner/itinerary-body/lib/
import React from 'react'
import styled from 'styled-components'

import { AppConfig } from '../../util/config-types'
import { getTripStatus, REALTIME_STATUS } from '../../util/viewer'
import FormattedDuration from '../util/formatted-duration'
import FormattedRealtimeStatusLabel from '../util/formatted-realtime-status-label'
Expand Down Expand Up @@ -156,9 +157,8 @@ const RealtimeStatusLabel = ({
}

const mapStateToProps = (state: {
// Typescript TODO: type state
otp: {
config: { onTimeThresholdSeconds: any; showScheduleDeviation: boolean }
config: AppConfig
}
}) => ({
onTimeThresholdSeconds: state.otp.config.onTimeThresholdSeconds,
Expand Down
2 changes: 2 additions & 0 deletions lib/util/config-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ export interface AppConfig {
routeViewer?: RouteViewerConfig
/** Approx delay in seconds to reset the UI to an initial URL if there is no user activity */
sessionTimeoutSeconds?: number
/** Whether to show the x minutes late/early in the itinerary body */
showScheduleDeviation?: boolean
stopViewer?: StopViewerConfig
/** App title shown in the browser title bar. */
title?: string
Expand Down

0 comments on commit a5f3115

Please sign in to comment.