The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
PartnerLinksButton
Steven Tey9e1154e44fe8
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/page.tsxindex ac18e651f3..0a61c8649e 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/page.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/page.tsx@@ -1,10 +1,11 @@import { PageContent } from "@/ui/layout/page-content";import { PageWidthWrapper } from "@/ui/layout/page-width-wrapper";import { LinksSettings } from "./form";+import PartnerLinksButton from "./partner-links-button";export default async function ProgramSettingsLinksPage() {return (- <PageContent title="Link settings">+ <PageContent title="Link settings" controls={<PartnerLinksButton />}><PageWidthWrapper className="mb-8"><LinksSettings /></PageWidthWrapper>diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/partner-links-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/partner-links-button.tsxnew file mode 100644index 0000000000..fb1d1d7f5f--- /dev/null+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/link-settings/partner-links-button.tsx@@ -0,0 +1,18 @@+"use client";++import useProgram from "@/lib/swr/use-program";+import { Button } from "@dub/ui";+import Link from "next/link";+import { useParams } from "next/navigation";++export default function PartnerLinksButton() {+ const { slug } = useParams();+ const { program } = useProgram();+ return (+ <Link+ href={`/${slug}/links${program?.defaultFolderId ? `?folderId=${program.defaultFolderId}` : ""}`}+ >+ <Button text="View partner links" variant="secondary" />+ </Link>+ );+}