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

Set up a hook for useCountry #120

Merged
merged 4 commits into from
Jan 25, 2020
Merged

Set up a hook for useCountry #120

merged 4 commits into from
Jan 25, 2020

Conversation

mbifulco
Copy link
Collaborator

The work in this PR will help with the eventual setup of a country switcher. I created a shorthand for the <CountryContext.Consumer> component with a react hook, which is basically an easier-to-read shorthand. Functionally, this is identical to what was there before - but will help with code readability.

this will help with the eventual setup of a country switcher
@mbifulco mbifulco self-assigned this Jan 15, 2020
@mbifulco mbifulco added the enhancement New feature or request label Jan 15, 2020
@philsturgeon
Copy link
Owner

Make sure whatever we do does not conflict with #83. @stephensamra are you ok with Mike running with this one?

@stephensamra
Copy link
Collaborator

stephensamra commented Jan 16, 2020

Thanks @mbifulco, this is definitely a cleaner approach. Will come in handy for #83 👍

@philsturgeon I'm good with this, I'll incorporate it into the country selectory improvements soon.

@mbifulco mbifulco merged commit 4c794e9 into master Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants