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

Alphabetize state selection in RegisterForm.tsx #41

Merged
merged 2 commits into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading