diff --git a/apps/web/src/app/api/registration/create/route.ts b/apps/web/src/app/api/registration/create/route.ts index 783dc742..836a7c1a 100644 --- a/apps/web/src/app/api/registration/create/route.ts +++ b/apps/web/src/app/api/registration/create/route.ts @@ -104,9 +104,9 @@ export async function POST(req: Request) { skills: body.skills.map((v) => v.text.toLowerCase()), profilePhoto: user.imageUrl, isFullyRegistered: true, - phoneNumber:body.phoneNumber, + phoneNumber: body.phoneNumber, isSearchable: body.profileIsSearchable, - countryOfResidence:body.countryOfResidence, + countryOfResidence: body.countryOfResidence, }); await tx.insert(userHackerData).values({ diff --git a/apps/web/src/app/dash/pass/page.tsx b/apps/web/src/app/dash/pass/page.tsx index d8bb0da6..0dc16f3f 100644 --- a/apps/web/src/app/dash/pass/page.tsx +++ b/apps/web/src/app/dash/pass/page.tsx @@ -74,7 +74,7 @@ function EventPass({ qrPayload, user, clerk, guild }: EventPassProps) {
-
+
{""} - +

{"HACK<"} -
+
{"&future>"}

October 26th - 27th 2024

-
- -
-
-

+
+ +
+
+

register

-
+
- + ); } @@ -42,7 +40,6 @@ function Overlay() { return (
-

ROWDYHACKS X ยท SAN PEDRO I, UTSA

diff --git a/apps/web/src/components/registration/RegisterForm.tsx b/apps/web/src/components/registration/RegisterForm.tsx index a78c3547..a7d81759 100644 --- a/apps/web/src/components/registration/RegisterForm.tsx +++ b/apps/web/src/components/registration/RegisterForm.tsx @@ -92,8 +92,8 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { shirtSize: "" as any, schoolID: "", university: "", - phoneNumber:"", - countryOfResidence:"", + phoneNumber: "", + countryOfResidence: "", }, }); @@ -116,10 +116,9 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { } }, [universityValue]); - - useEffect(()=>{ - console.log(countryValue) - },[countryValue]) + useEffect(() => { + console.log(countryValue); + }, [countryValue]); async function onSubmit(data: z.infer) { console.log(data); @@ -180,7 +179,7 @@ export default function RegisterForm({ defaultEmail }: RegisterFormProps) { setIsLoading(false); alert( `Something went wrong while attempting to register. Please try again. If this is a continuing issue, please reach out to us at ${c.issueEmail}.`, - ) + ); return console.log( `Recieved a unexpected response from the server. Please try again. If this is a continuing issue, please reach out to us at ${c.issueEmail}.`, ); diff --git a/apps/web/src/components/shared/Navbar.tsx b/apps/web/src/components/shared/Navbar.tsx index 7ba773fc..6833f26b 100644 --- a/apps/web/src/components/shared/Navbar.tsx +++ b/apps/web/src/components/shared/Navbar.tsx @@ -20,7 +20,7 @@ interface NavbarProps { export default async function Navbar({ className }: NavbarProps) { const user = await currentUser(); return ( -
+
!isProfane(val); const noProfanityMessage = "Profanity is not allowed"; -const countryCodesArray = c.registration.countries.map(countryObject => countryObject.code); +const countryCodesArray = c.registration.countries.map( + (countryObject) => countryObject.code, +); export const RegisterFormValidator = z.object({ firstName: z @@ -49,25 +51,25 @@ export const RegisterFormValidator = z.object({ z.literal("PREFERNOTSAY", defaultPrettyError), ]), race: z.union([ - z.literal("Asian Indian",defaultPrettyError), - z.literal("Asian (Other)",defaultPrettyError), - z.literal("Black or African",defaultPrettyError), - z.literal("Chinese",defaultPrettyError), - z.literal("Filipino",defaultPrettyError), - z.literal("Guamanian or Chamorro",defaultPrettyError), - z.literal("Hispanic / Latino / Spanish Origin",defaultPrettyError), - z.literal("Japanese",defaultPrettyError), - z.literal("Korean",defaultPrettyError), - z.literal("Middle Eastern",defaultPrettyError), - z.literal("Native American or Alaskan Native",defaultPrettyError), - z.literal("Native Hawaiian",defaultPrettyError), - z.literal("Samoan",defaultPrettyError), - z.literal("Vietnamese",defaultPrettyError), - z.literal("White",defaultPrettyError), - z.literal("Other Asian (Thai, Cambodian, etc)",defaultPrettyError), - z.literal("Other Pacific Islander",defaultPrettyError), - z.literal("Other",defaultPrettyError), - z.literal("Prefer Not to Answer",defaultPrettyError), + z.literal("Asian Indian", defaultPrettyError), + z.literal("Asian (Other)", defaultPrettyError), + z.literal("Black or African", defaultPrettyError), + z.literal("Chinese", defaultPrettyError), + z.literal("Filipino", defaultPrettyError), + z.literal("Guamanian or Chamorro", defaultPrettyError), + z.literal("Hispanic / Latino / Spanish Origin", defaultPrettyError), + z.literal("Japanese", defaultPrettyError), + z.literal("Korean", defaultPrettyError), + z.literal("Middle Eastern", defaultPrettyError), + z.literal("Native American or Alaskan Native", defaultPrettyError), + z.literal("Native Hawaiian", defaultPrettyError), + z.literal("Samoan", defaultPrettyError), + z.literal("Vietnamese", defaultPrettyError), + z.literal("White", defaultPrettyError), + z.literal("Other Asian (Thai, Cambodian, etc)", defaultPrettyError), + z.literal("Other Pacific Islander", defaultPrettyError), + z.literal("Other", defaultPrettyError), + z.literal("Prefer Not to Answer", defaultPrettyError), ]), ethnicity: z.union([ z.literal("Hispanic or Latino", defaultPrettyError), @@ -165,7 +167,9 @@ export const RegisterFormValidator = z.object({ .refine(noProfanityValidator, noProfanityMessage), profileDiscordName: z .string() - .max(40, { message: "Username should not be longer than 40 characters" }), + .max(40, { + message: "Username should not be longer than 40 characters", + }), pronouns: z.string().min(1).max(15), bio: z .string() diff --git a/packages/config/hackkit.config.ts b/packages/config/hackkit.config.ts index d2d49e8b..ccfc1749 100644 --- a/packages/config/hackkit.config.ts +++ b/packages/config/hackkit.config.ts @@ -972,13 +972,8 @@ const publicRoutes = [ /^\/user\//, "/404", "/bugreport", - "/faq" + "/faq", ]; export default c; -export { - defaultTheme, - bucketResumeBaseUploadUrl, - perms, - publicRoutes, -}; +export { defaultTheme, bucketResumeBaseUploadUrl, perms, publicRoutes }; diff --git a/packages/db/schema.ts b/packages/db/schema.ts index 391c674f..02f79c5c 100644 --- a/packages/db/schema.ts +++ b/packages/db/schema.ts @@ -76,7 +76,9 @@ export const userCommonData = pgTable("user_common_data", { skills: json("skills").notNull().$type().default([]), profilePhoto: varchar("profile_photo", { length: 255 }).notNull(), phoneNumber: varchar("phone_number", { length: 30 }).notNull(), - countryOfResidence: varchar("country_of_residence", { length: 3 }).notNull(), + countryOfResidence: varchar("country_of_residence", { + length: 3, + }).notNull(), // metadata isFullyRegistered: boolean("is_fully_registered").notNull().default(false),