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.

export const dynamic = 'auto'

Steven Tey718e6d188b74
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page.tsx
index 8ee4a79798..d45fa5a26e 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/referrals/page.tsx
@@ -15,6 +15,8 @@ import { EventTabs } from "./event-tabs";
import { InviteButton } from "./invite-button";
import ReferralsPageClient from "./page-client";
+export const dynamic = "auto";
+
export default async function ReferralsPage({
params: { slug },
searchParams,
@@ -97,7 +99,7 @@ export default async function ReferralsPage({
key={`${slug}-${event}-${page}`}
fallback={<EventListSkeleton />}
>
- <ActivityListRSC workspaceSlug={slug} event={event} page={page} />
+ <ActivityListRSC slug={slug} event={event} page={page} />
</Suspense>
</div>
</div>
@@ -106,17 +108,17 @@ export default async function ReferralsPage({
}
async function ActivityListRSC({
- workspaceSlug,
+ slug,
event,
page,
}: {
- workspaceSlug: string;
+ slug: string;
event: EventType;
page: number;
}) {
const eventsParams = {
domain: "refer.dub.co",
- key: workspaceSlug,
+ key: slug,
event,
};