diff --git a/app/page.tsx b/app/page.tsx index e0ab753..1f0c573 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -6,7 +6,7 @@ import { Button } from "@/components/ui/button" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { Input } from "@/components/ui/input" import { Label } from "@/components/ui/label" -import { Textarea } from "@/components/ui/textarea" + import { Checkbox } from "@/components/ui/checkbox" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import Link from "next/link" @@ -42,13 +42,6 @@ export default function RegisterPage() { const [formData, setFormData] = useState({ name: "", email: "", - contact: "", - contributions: "", - expectations: "", - howHeard: "", - dietary: [] as string[], - dietaryOther: "", - crewConsent: "", }) const tier = getClientTier() @@ -66,11 +59,7 @@ export default function RegisterPage() { // Validate required fields if ( !formData.name || - !formData.email || - !formData.contact || - !formData.contributions || - !formData.expectations || - !formData.crewConsent + !formData.email ) { alert("Please fill in all required fields") return @@ -80,10 +69,6 @@ export default function RegisterPage() { try { // Submit registration to Google Sheet first - const dietaryString = - formData.dietary.join(", ") + - (formData.dietaryOther ? `, ${formData.dietaryOther}` : "") - const response = await fetch("/api/register", { method: "POST", headers: { @@ -92,13 +77,6 @@ export default function RegisterPage() { body: JSON.stringify({ name: formData.name, email: formData.email, - contact: formData.contact, - contributions: formData.contributions, - expectations: formData.expectations, - howHeard: formData.howHeard, - dietary: dietaryString, - crewConsent: formData.crewConsent, - }), }) @@ -116,13 +94,6 @@ export default function RegisterPage() { } } - const handleDietaryChange = (value: string, checked: boolean) => { - setFormData((prev) => ({ - ...prev, - dietary: checked ? [...prev.dietary, value] : prev.dietary.filter((item) => item !== value), - })) - } - // Pricing summary line const pricingSummary = PRICING_TIERS.map( (t) => `€${t.price} ${t.label}${t === tier ? " (current)" : ""}` @@ -359,139 +330,6 @@ export default function RegisterPage() {

- {/* Contact */} -
- - setFormData({ ...formData, contact: e.target.value })} - /> -
- - {/* Contributions */} -
- -