Skip to content

Commit 404f516

Browse files
feat(ItineraryBody): Add fare info in each transit leg body (new config)
1 parent 7f8e31b commit 404f516

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

Diff for: lib/components/narrative/line-itin/connected-itinerary-body.js

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class ConnectedItineraryBody extends Component {
6363
showElevationProfile
6464
showLegIcon
6565
showMapButtonColumn={false}
66+
showRouteFares={config.itinerary && config.itinerary.showRouteFares}
6667
showViewTripButton
6768
timeOptions={timeOptions}
6869
toRouteAbbreviation={noop}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@opentripplanner/geocoder": "^1.0.2",
3535
"@opentripplanner/humanize-distance": "^0.0.22",
3636
"@opentripplanner/icons": "^1.0.1",
37-
"@opentripplanner/itinerary-body": "^1.1.0",
37+
"@opentripplanner/itinerary-body": "^1.2.0",
3838
"@opentripplanner/location-field": "^1.0.2",
3939
"@opentripplanner/location-icon": "^1.0.0",
4040
"@opentripplanner/park-and-ride-overlay": "^1.0.1",

Diff for: yarn.lock

+19-5
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,20 @@
12891289
prop-types "^15.7.2"
12901290
qs "^6.9.1"
12911291

1292+
"@opentripplanner/core-utils@^2.1.1":
1293+
version "2.1.2"
1294+
resolved "https://registry.yarnpkg.com/@opentripplanner/core-utils/-/core-utils-2.1.2.tgz#a19d5d788704f0a6c2aece5206a2c8997c251d16"
1295+
integrity sha512-i+ADDdHhC+oJNYPrk7o9eu3F/2IMMZ5YAOXR2QGBJbS97kQOYeTAN4pVGfWKTm7ClTTIBG9/NDnVyQMzGuYInw==
1296+
dependencies:
1297+
"@mapbox/polyline" "^1.1.0"
1298+
"@turf/along" "^6.0.1"
1299+
bowser "^2.7.0"
1300+
lodash.isequal "^4.5.0"
1301+
moment "^2.24.0"
1302+
moment-timezone "^0.5.27"
1303+
prop-types "^15.7.2"
1304+
qs "^6.9.1"
1305+
12921306
"@opentripplanner/endpoints-overlay@^1.0.1":
12931307
version "1.0.1"
12941308
resolved "https://registry.yarnpkg.com/@opentripplanner/endpoints-overlay/-/endpoints-overlay-1.0.1.tgz#d95f0bbfddc9382b593845799b963340eece2742"
@@ -1331,12 +1345,12 @@
13311345
"@opentripplanner/core-utils" "^1.2.0"
13321346
prop-types "^15.7.2"
13331347

1334-
"@opentripplanner/itinerary-body@^1.1.0":
1335-
version "1.1.0"
1336-
resolved "https://registry.yarnpkg.com/@opentripplanner/itinerary-body/-/itinerary-body-1.1.0.tgz#6fabc389ad25f6f14db5a5861603a127530e0d9e"
1337-
integrity sha512-svu2A0z+CnL5vrkDXuaMjJaDoSC4d52utzdGfgkXdfMaK9prO1D/6SHWiVILXmaDJExdBAoF3mxSuA7xPItTTA==
1348+
"@opentripplanner/itinerary-body@^1.2.0":
1349+
version "1.2.0"
1350+
resolved "https://registry.yarnpkg.com/@opentripplanner/itinerary-body/-/itinerary-body-1.2.0.tgz#96d8b832f26c6918ee2c0e122fce6a57a6e5df1a"
1351+
integrity sha512-LG8SRTTXdYD8M/7+peJPfuqRFbZlbxilqUBRyGw60efZcnWbAenQW/o5aznuucLHiafDUzVUQpy9SEd0gIqRSQ==
13381352
dependencies:
1339-
"@opentripplanner/core-utils" "^2.1.0"
1353+
"@opentripplanner/core-utils" "^2.1.1"
13401354
"@opentripplanner/humanize-distance" "^0.0.22"
13411355
"@opentripplanner/icons" "^1.0.0"
13421356
"@opentripplanner/location-icon" "^1.0.0"

0 commit comments

Comments
 (0)