The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Little fixes
Tim Wilson7ab51e1fa708
diff --git a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsxindex 14f4702e89..3535e00f7e 100644--- a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx+++ b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/application/form.tsx@@ -88,7 +88,6 @@ export function ProgramApplicationForm({: "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500",)}placeholder="[email protected]"- autoFocus={!isMobile}{...register("email", {required: true,})}@@ -109,7 +108,6 @@ export function ProgramApplicationForm({: "border-gray-300 text-gray-900 placeholder-gray-400 focus:border-gray-500 focus:ring-gray-500",)}placeholder="https://example.com"- autoFocus={!isMobile}{...register("website")}/></label>diff --git a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/apply-button.tsx b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/apply-button.tsxnew file mode 100644index 0000000000..7bc5684af5--- /dev/null+++ b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/apply-button.tsx@@ -0,0 +1,17 @@+"use client";++import { Button } from "@dub/ui";+import { useRouter } from "next/navigation";++export function ApplyButton({ programSlug }: { programSlug: string }) {+ const router = useRouter();++ return (+ <Button+ type="button"+ text="Apply today"+ className="border-[var(--brand)] bg-[var(--brand)] hover:bg-[var(--brand)] hover:ring-[var(--brand-ring)]"+ onClick={() => router.push(`/apply/${programSlug}/application`)}+ />+ );+}diff --git a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/page.tsx b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/page.tsxindex e8764276f5..15f1100922 100644--- a/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/page.tsx+++ b/apps/web/app/partners.dub.co/(apply)/apply/[programSlug]/page.tsx@@ -7,10 +7,10 @@ import { AccordionBlock } from "@/ui/partners/lander-blocks/AccordionBlock";import { FilesBlock } from "@/ui/partners/lander-blocks/FilesBlock";import { ImageBlock } from "@/ui/partners/lander-blocks/ImageBlock";import { TextBlock } from "@/ui/partners/lander-blocks/TextBlock";-import { Button } from "@dub/ui";import { notFound } from "next/navigation";import { CSSProperties } from "react";import { z } from "zod";+import { ApplyButton } from "./apply-button";import { DetailsGrid } from "./details-grid";import { Header } from "./header";@@ -96,11 +96,7 @@ export default async function ApplyPage({{/* Buttons */}<div className="mt-10 flex flex-col gap-2">- <Button- type="button"- text="Apply today"- className="border-[var(--brand)] bg-[var(--brand)] hover:bg-[var(--brand)] hover:ring-[var(--brand-ring)]"- />+ <ApplyButton programSlug={programSlug} />{/* <Button type="button" variant="secondary" text="Learn more" /> */}</div>