The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
move the files to /embed
Kiran Kaca0fbc891f0
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/constants.ts b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/constants.tsdeleted file mode 100644index e69de29bb2..0000000000diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page-client.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page-client.tsxindex a9147c229b..94d56952c9 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page-client.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page-client.tsx@@ -13,7 +13,7 @@ import { Suspense, useCallback, useEffect, useState } from "react";import { toast } from "sonner";import { HeroBackground } from "./hero-background";import ReferralLink, { ReferralLinkSkeleton } from "./referral-link";-import { ReferralsEmbed } from "./referrals";+import { ReferralsEmbed } from "../../../../embed/referrals";export default function ReferralsPageClient() {const { slug, flags } = useWorkspace();diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/event-tabs.tsx b/apps/web/app/app.dub.co/embed/event-tabs.tsxsimilarity index 100%rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/event-tabs.tsxrename to apps/web/app/app.dub.co/embed/event-tabs.tsxdiff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/events.tsx b/apps/web/app/app.dub.co/embed/events.tsxsimilarity index 100%rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/events.tsxrename to apps/web/app/app.dub.co/embed/events.tsxdiff --git a/apps/web/app/app.dub.co/embed/page.tsx b/apps/web/app/app.dub.co/embed/page.tsxindex 2152305194..ac800f5962 100644--- a/apps/web/app/app.dub.co/embed/page.tsx+++ b/apps/web/app/app.dub.co/embed/page.tsx@@ -1,5 +1,5 @@import { EventType } from "@/lib/analytics/types";-import { Referrals } from "../(dashboard)/[slug]/settings/referrals/referrals";+import { Referrals } from "./referrals";export default async function EmbedPage({searchParams,diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/placeholders.tsx b/apps/web/app/app.dub.co/embed/placeholders.tsxsimilarity index 100%rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/placeholders.tsxrename to apps/web/app/app.dub.co/embed/placeholders.tsxdiff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/referrals.tsx b/apps/web/app/app.dub.co/embed/referrals.tsxsimilarity index 89%rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/referrals.tsxrename to apps/web/app/app.dub.co/embed/referrals.tsxindex 0b72e98c47..0869b901fe 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/referrals.tsx+++ b/apps/web/app/app.dub.co/embed/referrals.tsx@@ -13,19 +13,14 @@ interface ReferralsProps {publicToken: string | undefined | null;}-export const Referrals = ({- slug,- event,- page,- publicToken,-}: ReferralsProps) => {+export const Referrals = ({ event, page, publicToken }: ReferralsProps) => {if (!publicToken) {return (<div className="flex h-64 flex-col items-center justify-center text-center"><h2 className="mb-2 text-2xl font-semibold text-gray-800">Unavailable</h2>- <p className="text-gray-600">Sorry, the referral token is not found.</p>+ <p className="text-gray-600">The referral token is not found.</p></div>);}diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/stats.tsx b/apps/web/app/app.dub.co/embed/stats.tsxsimilarity index 100%rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/stats.tsxrename to apps/web/app/app.dub.co/embed/stats.tsx