Skip to content

Commit

Permalink
Merge pull request #214 from ugahacks/feature/registration-change-dp
Browse files Browse the repository at this point in the history
Feature/registration change dp
  • Loading branch information
vansharora03 authored Jul 2, 2024
2 parents fc06d0c + a0d720f commit 47e8cad
Show file tree
Hide file tree
Showing 3 changed files with 7,275 additions and 5,021 deletions.
2 changes: 2 additions & 0 deletions projects/mybyte/enums/registerEnums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export enum Races {
black = "Black",
middleEastern = "Middle Eastern",
nativeAmerican = "Native American, Alaskan Native, or Native Hawaiian",
hispanic = "Hispanic",
other = "Other",
preferNotToAnswer = "Prefer Not to Answer"
}
Expand Down Expand Up @@ -68,6 +69,7 @@ export enum DietaryRestrictions {
celiacDisease = "Celiac Disease",
kosher = "Kosher",
halal = "Halal",
glutenFree = "Gluten Free",
none = "None",
other = "Other",
}
Expand Down
15 changes: 5 additions & 10 deletions projects/mybyte/pages/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export default function Register() {
inputDietaryRestrictions: "",
participated: false,
elCreditInterest: undefined,
mlhCommunication: false,
},
});

Expand Down Expand Up @@ -1166,22 +1167,16 @@ export default function Register() {
<Controller
control={control}
name="mlhCommunication"
rules={{
required:
"You must select yes before proceeding",
}}
render={({ field: { onChange, value } }) => (
<>
<label
className="block tracking-wide text-gray-700 text-xs font-bold mb-2"
htmlFor="grid-text-1"
>
<em>Communication from MLH: </em>“I
authorize MLH to send me an email where I
can further opt into the MLH Hacker, Events,
or Organizer Newsletters and other
communications from MLH.&quot;
<span className="text-red-600">*</span>
<em>Communication from MLH: </em>“I
authorize MLH to send me occasional
emails about relevant events, career
opportunities, and community announcements.&quot;
</label>
<label className="relative inline-flex items-center mb-4 cursor-pointer">
<input
Expand Down
Loading

0 comments on commit 47e8cad

Please sign in to comment.