From 2a0ca7542618eea9818326eb9a547912b214549e Mon Sep 17 00:00:00 2001 From: Daniel Heppner Date: Wed, 18 Oct 2023 16:37:16 -0700 Subject: [PATCH] make stop viewer into schedule viewer --- lib/components/viewers/stop-viewer.js | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/lib/components/viewers/stop-viewer.js b/lib/components/viewers/stop-viewer.js index f907f0d88..6440e786a 100644 --- a/lib/components/viewers/stop-viewer.js +++ b/lib/components/viewers/stop-viewer.js @@ -40,7 +40,7 @@ function getDefaultState(timeZone) { return { // Compare dates/times in the stop viewer based on the agency's timezone. date: getCurrentDate(timeZone), - isShowingSchedule: false + isShowingSchedule: true } } @@ -190,6 +190,11 @@ class StopViewer extends Component { zoomToPlace(map, stopData) } + _viewNearby = () => { + const { setViewedNearbyCoords, stopData } = this.props + setViewedNearbyCoords(stopData) + } + _renderHeader = (agencyCount) => { const { enableFavoriteStops, @@ -332,7 +337,17 @@ class StopViewer extends Component { > - {!isFlex && ( + + {/* {!isFlex && ( - )} + )} */}