Skip to content

Commit 183c450

Browse files
NiallJoeMaherclaude
andcommitted
style: apply Prettier formatting to volunteer/speaker files
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c1044bc commit 183c450

5 files changed

Lines changed: 19 additions & 26 deletions

File tree

app/(app)/volunteer/page.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import type { Metadata } from "next";
22
import { VolunteerClient } from "./_client";
33

44
const PAGE_URL = "https://www.codu.co/volunteer";
5-
const PAGE_TITLE = "Volunteer with Codú — Help Build Ireland's Largest Dev Community";
5+
const PAGE_TITLE =
6+
"Volunteer with Codú — Help Build Ireland's Largest Dev Community";
67
const PAGE_DESCRIPTION =
78
"Join the team behind Codú. We're recruiting volunteer marketers and event organisers to help run meetups, newsletters, partnerships, and socials across the Irish tech ecosystem.";
89

components/Speaker/SpeakerForm.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function SpeakerForm() {
7777
const result = SpeakerApplicationSchema.safeParse(data);
7878
if (!result.success) {
7979
result.error.issues.forEach((issue) => {
80-
setError(
81-
issue.path.join(".") as FieldPath<SpeakerApplicationInput>,
82-
{ type: "manual", message: issue.message },
83-
);
80+
setError(issue.path.join(".") as FieldPath<SpeakerApplicationInput>, {
81+
type: "manual",
82+
message: issue.message,
83+
});
8484
});
8585
return;
8686
}

components/Volunteer/VolunteerForm.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ export function VolunteerForm() {
6868
const result = VolunteerApplicationSchema.safeParse(data);
6969
if (!result.success) {
7070
result.error.issues.forEach((issue) => {
71-
setError(
72-
issue.path.join(".") as FieldPath<VolunteerApplicationInput>,
73-
{ type: "manual", message: issue.message },
74-
);
71+
setError(issue.path.join(".") as FieldPath<VolunteerApplicationInput>, {
72+
type: "manual",
73+
message: issue.message,
74+
});
7575
});
7676
return;
7777
}
@@ -190,9 +190,7 @@ export function VolunteerForm() {
190190
{...register("workOn")}
191191
invalid={!!errors.workOn}
192192
/>
193-
{errors.workOn && (
194-
<ErrorMessage>{errors.workOn.message}</ErrorMessage>
195-
)}
193+
{errors.workOn && <ErrorMessage>{errors.workOn.message}</ErrorMessage>}
196194
</Field>
197195

198196
<Field>

schema/speaker.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@ export const talkLengthLabels: Record<(typeof talkLengths)[number], string> = {
1414
FLEXIBLE: "Flexible",
1515
};
1616

17-
export const speakerFormats = [
18-
"IN_PERSON_DUBLIN",
19-
"REMOTE",
20-
"EITHER",
21-
] as const;
17+
export const speakerFormats = ["IN_PERSON_DUBLIN", "REMOTE", "EITHER"] as const;
2218

2319
export const speakerFormatLabels: Record<
2420
(typeof speakerFormats)[number],
@@ -75,10 +71,7 @@ export const SpeakerApplicationSchema = z.object({
7571
.email("Please enter a valid email address")
7672
.max(255, "Email must be 255 characters or less"),
7773
link: z
78-
.union([
79-
z.literal(""),
80-
z.string().url("Please enter a valid URL").max(500),
81-
])
74+
.union([z.literal(""), z.string().url("Please enter a valid URL").max(500)])
8275
.optional(),
8376
location: z
8477
.string()

schema/volunteer.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import { z } from "zod";
22

3-
export const volunteerAreas = ["MARKETING", "EVENTS", "BOTH_OR_UNSURE"] as const;
3+
export const volunteerAreas = [
4+
"MARKETING",
5+
"EVENTS",
6+
"BOTH_OR_UNSURE",
7+
] as const;
48

59
export const volunteerAreaLabels: Record<
610
(typeof volunteerAreas)[number],
@@ -45,10 +49,7 @@ export const VolunteerApplicationSchema = z.object({
4549
.email("Please enter a valid email address")
4650
.max(255, "Email must be 255 characters or less"),
4751
link: z
48-
.union([
49-
z.literal(""),
50-
z.string().url("Please enter a valid URL").max(500),
51-
])
52+
.union([z.literal(""), z.string().url("Please enter a valid URL").max(500)])
5253
.optional(),
5354
location: z
5455
.string()

0 commit comments

Comments
 (0)