Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: date time use url storage #1208

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

daniel-heppner-ibigroup
Copy link
Contributor

Description:
This is setting us up for future changes to the date time selector. We need to adapt it to use the URL for the source of truth rather than Redux.

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.

Working well! Just a few small tweaks

*/
const _onSettingsUpdate = useCallback(
(params: any) => {
console.log('setting')
Copy link
Collaborator

Choose a reason for hiding this comment

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

Whoops!

const _onSettingsUpdate = useCallback(
(params: any) => {
console.log('setting')
setQueryParam({ queryParamData: params, ...params })
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we really inserting everything twice? That's so annoying

Comment on lines +55 to +57
date: urlSearchParams.get('date'),
departArrive: urlSearchParams.get('departArrive'),
time: urlSearchParams.get('time')
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is simple enough I don't mind the repetition

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.

Actually before I approve I'm a bit nervous about the Percy tests. why did their date change

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.

2 participants