-
Notifications
You must be signed in to change notification settings - Fork 9
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
Replace AddressInput Selects #321
Conversation
@@ -2,21 +2,13 @@ import PropTypes from 'prop-types'; | |||
import React from 'react'; | |||
import flow from 'lodash.flow'; | |||
|
|||
import Select from './Select'; | |||
import CountryInput from './CountryInput'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this a lot as it allows us to even improve the looks over time.
@@ -2,21 +2,13 @@ import PropTypes from 'prop-types'; | |||
import React from 'react'; | |||
import flow from 'lodash.flow'; | |||
|
|||
import Select from './Select'; | |||
import CountryInput from './CountryInput'; | |||
import StateInput from './StateInput'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name is slightly ambiguous. Should we call it USAStateInput
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, idea was it might handle determining provinces for various countries, but agreed "State" is vague
@@ -6,7 +6,7 @@ export default [ | |||
{ label: 'California', value: 'CA' }, | |||
{ label: 'Colorado', value: 'CO' }, | |||
{ label: 'Connecticut', value: 'CT' }, | |||
{ label: 'Deleware', value: 'DE' }, | |||
{ label: 'Delaware', value: 'DE' }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- Reorder countries for common usage - Correct State typo - Add other US state codes
PR to replace AddressInput Select with Input type="select"
Adds CountryInput and StateInput
WIP - need to: