Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update apply-button.tsx

Steven Tey1c2ada408131
diff --git a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply-button.tsx b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply-button.tsx
index 7bc5684af5..d679c2860c 100644
--- a/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply-button.tsx
+++ b/apps/web/app/partners.dub.co/(apply)/[programSlug]/apply-button.tsx
@@ -1,17 +1,16 @@
"use client";
import { Button } from "@dub/ui";
-import { useRouter } from "next/navigation";
+import Link from "next/link";
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`)}
- />
+ <Link href={`/${programSlug}/apply`}>
+ <Button
+ type="button"
+ text="Apply today"
+ className="border-[var(--brand)] bg-[var(--brand)] hover:bg-[var(--brand)] hover:ring-[var(--brand-ring)]"
+ />
+ </Link>
);
}