-
Notifications
You must be signed in to change notification settings - Fork 940
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1232 from sharetribe/add-state-dropdown-to-payout…
…-details Show states and provinces as dropdown on PayoutDetailsForm
- Loading branch information
Showing
5 changed files
with
134 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Sates and provinces in the format Stripe validation will accept | ||
// Read more: https://support.stripe.com/questions/connect-address-validation | ||
|
||
export const CA_PROVINCES = [ | ||
{ key: 'AB', label: 'Alberta' }, | ||
{ key: 'BC', label: 'British Columbia' }, | ||
{ key: 'MB', label: 'Manitoba' }, | ||
{ key: 'NB', label: 'New Brunswick' }, | ||
{ key: 'NL', label: 'Newfoundland and Labrador' }, | ||
{ key: 'NS', label: 'Nova Scotia' }, | ||
{ key: 'NT', label: 'Northwest Territories' }, | ||
{ key: 'NU', label: 'Nunavut' }, | ||
{ key: 'ON', label: 'Ontario' }, | ||
{ key: 'PE', label: 'Prince Edward Island' }, | ||
{ key: 'QC', label: 'Quebec' }, | ||
{ key: 'SK', label: 'Saskatchewan' }, | ||
{ key: 'YT', label: 'Yukon' }, | ||
]; | ||
|
||
export const US_STATES = [ | ||
{ key: 'AL', label: 'Alabama' }, | ||
{ key: 'AK', label: 'Alaska' }, | ||
{ key: 'AZ', label: 'Arizona' }, | ||
{ key: 'AR', label: 'Arkansas' }, | ||
{ key: 'CA', label: 'California' }, | ||
{ key: 'CO', label: 'Colorado' }, | ||
{ key: 'CT', label: 'Connecticut' }, | ||
{ key: 'DE', label: 'Delaware' }, | ||
{ key: 'DC', label: 'District of Columbia' }, | ||
{ key: 'FL', label: 'Florida' }, | ||
{ key: 'GA', label: 'Georgia' }, | ||
{ key: 'HI', label: 'Hawaii' }, | ||
{ key: 'ID', label: 'Idaho' }, | ||
{ key: 'IL', label: 'Illinois' }, | ||
{ key: 'IN', label: 'Indiana' }, | ||
{ key: 'IA', label: 'Iowa' }, | ||
{ key: 'KS', label: 'Kansas' }, | ||
{ key: 'KY', label: 'Kentucky' }, | ||
{ key: 'LA', label: 'Louisiana' }, | ||
{ key: 'ME', label: 'Maine' }, | ||
{ key: 'MD', label: 'Maryland' }, | ||
{ key: 'MA', label: 'Massachusetts' }, | ||
{ key: 'MI', label: 'Michigan' }, | ||
{ key: 'MN', label: 'Minnesota' }, | ||
{ key: 'MS', label: 'Mississippi' }, | ||
{ key: 'MO', label: 'Missouri' }, | ||
{ key: 'MT', label: 'Montana' }, | ||
{ key: 'NE', label: 'Nebraska' }, | ||
{ key: 'NV', label: 'Nevada' }, | ||
{ key: 'NH', label: 'New Hampshire' }, | ||
{ key: 'NJ', label: 'New Jersey' }, | ||
{ key: 'NM', label: 'New Mexico' }, | ||
{ key: 'NY', label: 'New York' }, | ||
{ key: 'NC', label: 'North Carolina' }, | ||
{ key: 'ND', label: 'North Dakota' }, | ||
{ key: 'OH', label: 'Ohio' }, | ||
{ key: 'OK', label: 'Oklahoma' }, | ||
{ key: 'OR', label: 'Oregon' }, | ||
{ key: 'PA', label: 'Pennsylvania' }, | ||
{ key: 'PR', label: 'Puerto Rico' }, | ||
{ key: 'RI', label: 'Rhode Island' }, | ||
{ key: 'SC', label: 'South Carolina' }, | ||
{ key: 'SD', label: 'South Dakota' }, | ||
{ key: 'TN', label: 'Tennessee' }, | ||
{ key: 'TX', label: 'Texas' }, | ||
{ key: 'UT', label: 'Utah' }, | ||
{ key: 'VT', label: 'Vermont' }, | ||
{ key: 'VA', label: 'Virginia' }, | ||
{ key: 'WA', label: 'Washington' }, | ||
{ key: 'WV', label: 'West Virginia' }, | ||
{ key: 'WI', label: 'Wisconsin' }, | ||
{ key: 'WY', label: 'Wyoming' }, | ||
]; | ||
|
||
export const AU_STATES = [ | ||
{ key: 'ACT', label: 'Australian Capital Territory' }, | ||
{ key: 'NSW', label: 'New South Wales' }, | ||
{ key: 'NT', label: 'Northern Territory' }, | ||
{ key: 'QLD', label: 'Queensland' }, | ||
{ key: 'SA', label: 'South Australia' }, | ||
{ key: 'TAS', label: 'Tasmania' }, | ||
{ key: 'VIC', label: 'Victoria' }, | ||
{ key: 'WA', label: 'Western Australia' }, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters