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.

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.ts
deleted file mode 100644
index e69de29bb2..0000000000
diff --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.tsx
index 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.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/event-tabs.tsx
rename to apps/web/app/app.dub.co/embed/event-tabs.tsx
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/events.tsx b/apps/web/app/app.dub.co/embed/events.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/events.tsx
rename to apps/web/app/app.dub.co/embed/events.tsx
diff --git a/apps/web/app/app.dub.co/embed/page.tsx b/apps/web/app/app.dub.co/embed/page.tsx
index 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.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/placeholders.tsx
rename to apps/web/app/app.dub.co/embed/placeholders.tsx
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/referrals.tsx b/apps/web/app/app.dub.co/embed/referrals.tsx
similarity index 89%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/referrals.tsx
rename to apps/web/app/app.dub.co/embed/referrals.tsx
index 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.tsx
similarity index 100%
rename from apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/stats.tsx
rename to apps/web/app/app.dub.co/embed/stats.tsx