Skip to content

Commit

Permalink
Merge pull request #41 from cisagov/19-consolidate-state-and-region-m…
Browse files Browse the repository at this point in the history
…apping

Alphabetize state selection in RegisterForm.tsx
  • Loading branch information
schmelz21 authored Mar 13, 2024
2 parents 2197a69 + 1d88827 commit 4f0c470
Showing 1 changed file with 1 addition and 62 deletions.
63 changes: 1 addition & 62 deletions frontend/src/components/Register/RegisterForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,71 +14,10 @@ import {
import { Save } from '@mui/icons-material';
import { SelectChangeEvent } from '@mui/material/Select';
import { User } from 'types';
import { STATE_OPTIONS } from '../../constants/constants';

const StyledDialog = registerFormStyles.StyledDialog;

// State options (Keep casing as it matches region options in backend)
const STATE_OPTIONS = [
'Connecticut',
'Maine',
'Massachusetts',
'New Hampshire',
'Rhode Island',
'Vermont',
'New Jersey',
'New York',
'Puerto Rico',
'Virgin Islands',
'Delaware',
'Maryland',
'Pennsylvania',
'Virginia',
'District of Columbia',
'West Virginia',
'Alabama',
'Florida',
'Georgia',
'Kentucky',
'Mississippi',
'North Carolina',
'South Carolina',
'Tennessee',
'Illinois',
'Indiana',
'Michigan',
'Minnesota',
'Ohio',
'Wisconsin',
'Arkansas',
'Louisiana',
'New Mexico',
'Oklahoma',
'Texas',
'Iowa',
'Kansas',
'Missouri',
'Nebraska',
'Colorado',
'Montana',
'North Dakota',
'South Dakota',
'Utah',
'Wyoming',
'Arizona',
'California',
'Hawaii',
'Nevada',
'Guam',
'American Samoa',
'Commonwealth Northern Mariana Islands',
'Republic of Marshall Islands',
'Federal States of Micronesia',
'Alaska',
'Idaho',
'Oregon',
'Washington'
];

export interface RegisterFormValues {
firstName: string;
lastName: string;
Expand Down

0 comments on commit 4f0c470

Please sign in to comment.