Skip to content
Merged
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
27 changes: 27 additions & 0 deletions src/components/features/settings/hackathon-settings-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,15 @@ export function HackathonSettingsForm({ hackathonId }: HackathonSettingsFormProp
disabled={!isEditing}
/>
</div>
<div className="flex items-center justify-between">
<Label htmlFor="rsvpOpen">RSVP Open</Label>
<Switch
id="rsvpOpen"
checked={getBooleanValue("rsvpOpen")}
onCheckedChange={(checked) => handleFieldChange("rsvpOpen", checked)}
disabled={!isEditing}
/>
</div>
<div className="space-y-2">
<Label htmlFor="applicationDeadline">Application Deadline</Label>
<Input
Expand Down Expand Up @@ -459,6 +468,24 @@ export function HackathonSettingsForm({ hackathonId }: HackathonSettingsFormProp
placeholder="Enter Notion link for pre-hackathon workshops"
/>
</div>
<div className="space-y-2">
<Label htmlFor="hackerPackageIFrame">Hacker Package IFrame</Label>
<div className="text-muted-foreground text-sm">
<p>1. Publish the hacker package</p>
<p>2. Click site settings → Publish tab → Embed this page</p>
<p>3. Disable "Show page header"</p>
<p>4. Copy code</p>
</div>
<Input
id="hackerPackageIFrame"
value={getValue("notionLinks", "hackerPackageIFrame")}
onChange={(e) =>
handleFieldChange("notionLinks", e.target.value, "hackerPackageIFrame")
}
disabled={!isEditing}
placeholder="Enter Notion embed code for hacker package"
/>
</div>
</div>
</div>

Expand Down
2 changes: 2 additions & 0 deletions src/lib/firebase/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ export interface WaiversAndForms {
}

export interface NotionLinks {
hackerPackageIFrame: string;
preHackathonWorkshops: string;
}

Expand Down Expand Up @@ -590,6 +591,7 @@ export interface HackathonConfig {
offWaitlistNotify: HackathonConfigMap;
portalLive: HackathonBooleanMap;
rsvpBy: HackathonConfigMap;
rsvpOpen: HackathonBooleanMap;
sendAcceptancesBy: HackathonConfigMap;
submissionsOpen: HackathonBooleanMap;
waiversAndForms: WaiversAndFormsMap;
Expand Down