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

Replace AddressInput Selects #321

Merged
merged 11 commits into from
Oct 28, 2017
Merged

Replace AddressInput Selects #321

merged 11 commits into from
Oct 28, 2017

Conversation

gthomas-appfolio
Copy link
Contributor

@gthomas-appfolio gthomas-appfolio commented Oct 27, 2017

PR to replace AddressInput Select with Input type="select"
Adds CountryInput and StateInput

screen shot 2017-10-26 at 6 25 06 pm

WIP - need to:

  • add unit tests

@@ -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';
Copy link

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';
Copy link

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 ?

Copy link
Contributor Author

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' },

Choose a reason for hiding this comment

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

👍

@gthomas-appfolio gthomas-appfolio merged commit 266a622 into master Oct 28, 2017
@gthomas-appfolio gthomas-appfolio deleted the addressInputSelects branch October 28, 2017 19:24
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.

3 participants