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.

use key instead of title

Kiran K480575d2643e
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
index 228d84b6b8..0cc2413388 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/integration-guides.ts
@@ -1,7 +1,10 @@
+import { BetterAuth } from "@/ui/layout/sidebar/conversions/icons/better-auth";
+import { Clerk } from "@/ui/layout/sidebar/conversions/icons/clerk";
import { Shopify } from "@/ui/layout/sidebar/conversions/icons/shopify";
+import { Stripe } from "@/ui/layout/sidebar/conversions/icons/stripe";
+import { Supabase } from "@/ui/layout/sidebar/conversions/icons/supabase";
import { Code, Framer, Globe } from "lucide-react";
import { IntegrationGuide } from "./types";
-import { Stripe } from "@/ui/layout/sidebar/conversions/icons/stripe";
export const guides: IntegrationGuide[] = [
{
@@ -28,15 +31,6 @@ export const guides: IntegrationGuide[] = [
shortDescription: "Dub Analytics",
icon: Code,
},
- {
- type: "code",
- key: "manual",
- title: "Manual",
- description: "How to add @dub/analytics to your site",
- shortDescription: "Dub Analytics",
- icon: Code,
- },
-
{
type: "no-code",
key: "framer",
@@ -61,4 +55,62 @@ export const guides: IntegrationGuide[] = [
shortDescription: "Dub Analytics",
icon: Stripe,
},
+ {
+ type: "code",
+ key: "clerk",
+ title: "Clerk",
+ description: "Track lead conversion events with Clerk and Dub",
+ shortDescription: "Track leads",
+ icon: Clerk,
+ },
+ {
+ type: "code",
+ key: "betterauth",
+ title: "Better Auth",
+ description: "Track lead conversion events with Better Auth and Dub",
+ shortDescription: "Track leads",
+ icon: BetterAuth,
+ },
+ {
+ type: "code",
+ key: "nextauth",
+ title: "NextAuth.js",
+ description: "Track lead conversion events with NextAuth and Dub",
+ shortDescription: "Track leads",
+ icon: Code,
+ },
+ {
+ type: "code",
+ key: "supabase",
+ title: "Supabase",
+ description:
+ "Learn how to track lead conversion events with Supabase and Dub",
+ shortDescription: "Track leads",
+ icon: Supabase,
+ },
+ {
+ type: "code",
+ key: "auth0",
+ title: "Auth0",
+ description: "Learn how to track lead conversion events with Auth0 and Dub",
+ shortDescription: "Track leads",
+ icon: Code,
+ },
+ {
+ type: "code",
+ key: "appwrite",
+ title: "Appwrite",
+ description:
+ "Learn how to track lead conversion events with Appwrite and Dub",
+ shortDescription: "Track leads",
+ icon: Code,
+ },
+ {
+ type: "code",
+ key: "manual",
+ title: "Manual",
+ description: "How to add @dub/analytics to your site",
+ shortDescription: "Dub Analytics",
+ icon: Code,
+ },
];
diff --git a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page-client.tsx b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page-client.tsx
index e3ae0fad53..2124ca97ae 100644
--- a/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page-client.tsx
+++ b/apps/web/app/(ee)/app.dub.co/(new-program)/[slug]/program/new/connect/page-client.tsx
@@ -2,9 +2,9 @@
import { useSearchParams } from "next/navigation";
import { useEffect, useState } from "react";
-import { guides } from "./integration-guides";
import { Guide } from "./guide";
import { GuideList } from "./guide-list";
+import { guides } from "./integration-guides";
import { IntegrationGuide } from "./types";
interface PageClientProps {
@@ -25,9 +25,7 @@ export function PageClient({ markdown }: PageClientProps) {
return;
}
- const integrationGuide = guides.find(
- (g) => g.title.toLowerCase() === guide.toLowerCase(),
- );
+ const integrationGuide = guides.find((g) => g.key === guide.toLowerCase());
if (integrationGuide) {
setSelectedGuide(integrationGuide);