The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add age verification and terms agreement checkboxes to partner application form
Kiran K06f4b2866565
diff --git a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/form.tsx b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/form.tsxindex 2d6748fcfd..423be3a8c3 100644--- a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/form.tsx+++ b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply/form.tsx@@ -18,6 +18,8 @@ type FormData = {website?: string;proposal: string;comments?: string;+ ageVerification: boolean;+ termsAgreement: boolean;};export function ProgramApplicationForm({@@ -178,6 +180,36 @@ export function ProgramApplicationForm({/></label>+ <div className="flex items-center gap-2">+ <input+ type="checkbox"+ id="ageVerification"+ className={cn(+ "h-4 w-4 rounded border-neutral-300 text-[var(--brand)] focus:ring-[var(--brand)]",+ errors.ageVerification && "border-red-400 focus:ring-red-500",+ )}+ {...register("ageVerification", { required: true })}+ />+ <label htmlFor="ageVerification" className="text-sm text-neutral-800">+ I am 21 years or older+ </label>+ </div>++ <div className="flex items-center gap-2">+ <input+ type="checkbox"+ id="termsAgreement"+ className={cn(+ "h-4 w-4 rounded border-neutral-300 text-[var(--brand)] focus:ring-[var(--brand)]",+ errors.termsAgreement && "border-red-400 focus:ring-red-500",+ )}+ {...register("termsAgreement", { required: true })}+ />+ <label htmlFor="termsAgreement" className="text-sm text-neutral-800">+ I agree to the {program.name} affiliate participation agreement+ </label>+ </div>+<Buttontext="Submit application"className="mt-4 enabled:border-[var(--brand)] enabled:bg-[var(--brand)] enabled:hover:bg-[var(--brand)] enabled:hover:ring-[var(--brand-ring)]"