We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 595cc08 commit b787b53Copy full SHA for b787b53
lib/components/narrative/itinerary-carousel.js
@@ -16,13 +16,16 @@ class ItineraryCarousel extends Component {
16
pending: PropTypes.bool,
17
activeItinerary: PropTypes.number,
18
hideHeader: PropTypes.bool,
19
+ onExpand: PropTypes.func,
20
setActiveItinerary: PropTypes.func,
21
setActiveLeg: PropTypes.func,
22
setActiveStep: PropTypes.func
23
}
24
25
_onItineraryClick = () => {
- this.setState({expanded: !this.state.expanded})
26
+ const expanded = !this.state.expanded
27
+ this.setState({expanded})
28
+ if (this.props.onExpand) this.props.onExpand(expanded)
29
30
31
_onLeftClick = () => {
0 commit comments