Skip to content

Conversation

@binh-dam-ibigroup
Copy link
Collaborator

@binh-dam-ibigroup binh-dam-ibigroup commented Apr 26, 2022

This PR updates itinerary packages to use internationalization features.
Also fixes #597.

Note that timeOptions props have been dropped, and I think, where timeOptions.offset was used, the applicable DST offset is already applied by the <FormattedTime> component.

@binh-dam-ibigroup binh-dam-ibigroup changed the base branch from dev to fix-mode-selector April 26, 2022 22:00
@binh-dam-ibigroup binh-dam-ibigroup changed the base branch from fix-mode-selector to dev April 26, 2022 22:00
@binh-dam-ibigroup binh-dam-ibigroup marked this pull request as ready for review April 26, 2022 22:08
Copy link
Collaborator

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than a potential bug regression this looks good and seems to work! Thanks for getting things set up

return function (dispatch, getState) {
const state = getState()
if (state.otp.ui.mainPanelContent !== null) return state
if (state.otp.ui.mainPanelContent) return state
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this -- I think I remember there being a bug where this is sometimes explicitly set to undefined which causes strange behavior

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I brought the !== null back in 145f814, the better way to handle it is to initialize state.otp.ui.mainPanelContent to null.

@binh-dam-ibigroup binh-dam-ibigroup merged commit 2b855e9 into dev May 5, 2022
@binh-dam-ibigroup binh-dam-ibigroup deleted the update-itinerary-packages branch May 5, 2022 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Itinerary steps (ItineraryBody) not shown in print view

4 participants