The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
there shouldn't be "I'll connect Dub later" for the tracking-guide page
Kiran K84296ff6dcea
diff --git a/apps/web/ui/guides/guide-list.tsx b/apps/web/ui/guides/guide-list.tsxindex cfaf395c61..f8f4fb986b 100644--- a/apps/web/ui/guides/guide-list.tsx+++ b/apps/web/ui/guides/guide-list.tsx@@ -8,8 +8,7 @@ import {ProgramSheetAccordionItem,ProgramSheetAccordionTrigger,} from "@/ui/partners/program-sheet-accordion";-import { Button, useCopyToClipboard } from "@dub/ui";-import { cn } from "@dub/utils";+import { Button } from "@dub/ui";import { Check } from "lucide-react";import Link from "next/link";import { usePathname } from "next/navigation";@@ -21,10 +20,6 @@ import {sections,} from "./integrations";-interface GuideListProps {- showConnectLaterButton?: boolean;-}-const guidesByType = guides.reduce((acc, guide) => {if (!acc[guide.type]) {@@ -36,10 +31,9 @@ const guidesByType = guides.reduce({} as Record<IntegrationType, IntegrationGuide[]>,);-export function GuideList({ showConnectLaterButton = true }: GuideListProps) {+export function GuideList() {const pathname = usePathname();const { slug: workspaceSlug } = useWorkspace();- const [copied, copyToClipboard] = useCopyToClipboard();const [completedSections, setCompletedSections] = useState<Set<IntegrationType>@@ -68,6 +62,8 @@ export function GuideList({ showConnectLaterButton = true }: GuideListProps) {}};+ const showConnectLaterButton = pathname.includes("connect");+return (<div><ProgramSheetAccordion@@ -165,13 +161,8 @@ export function GuideList({ showConnectLaterButton = true }: GuideListProps) {})}</ProgramSheetAccordion>- <div- className={cn(- "mt-6 flex items-center justify-between gap-4",- !showConnectLaterButton && "justify-center",- )}- >- {showConnectLaterButton && (+ {showConnectLaterButton && (+ <div className="mt-6 flex items-center justify-end gap-4"><Link href={`/${workspaceSlug}/program/new/overview`}><Buttontext="I'll connect Dub later"@@ -179,8 +170,8 @@ export function GuideList({ showConnectLaterButton = true }: GuideListProps) {variant="secondary"/></Link>- )}- </div>+ </div>+ )}</div>);}