From 1e0a4333890d634f85f5b80766399a7fff1afb9a Mon Sep 17 00:00:00 2001 From: lcaraballo Date: Thu, 2 May 2024 14:13:27 -0400 Subject: [PATCH 1/2] Updating version to 6.5.0-alpha --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 8b086845e..d7bd9ed1b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "otp-react-redux", - "version": "6.4.0", + "version": "6.5.0-alpha", "description": "A library for writing modern OpenTripPlanner-compatible multimodal journey planning web applications using React and Redux", "main": "build/index.js", "scripts": { From a8cb1ea91fc3242c533024948c6ebfe547684b53 Mon Sep 17 00:00:00 2001 From: msalvatore Date: Thu, 22 Aug 2024 11:32:05 -0400 Subject: [PATCH 2/2] temp demo booking link --- .../narrative/line-itin/connected-itinerary-body.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/components/narrative/line-itin/connected-itinerary-body.js b/lib/components/narrative/line-itin/connected-itinerary-body.js index a0eedbfda..b34128ff5 100644 --- a/lib/components/narrative/line-itin/connected-itinerary-body.js +++ b/lib/components/narrative/line-itin/connected-itinerary-body.js @@ -88,6 +88,13 @@ class ConnectedItineraryBody extends Component { } }) + let bookingUrl = '' + console.log(itinerary.legs[0].bookingUrl) + if (itinerary.legs && itinerary.legs[0] && itinerary.legs[0].bookingUrl) { + bookingUrl = itinerary.legs[0].bookingUrl + console.log(bookingUrl) + } + return ( + {bookingUrl && ( + + [DEMO USE ONLY] Click here to book + + )} )