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

211 registration change #212

Open
wants to merge 3 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
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
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
14 changes: 4 additions & 10 deletions projects/mybyte/pages/register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1166,22 +1166,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