The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rename
Steven Tey2fb18eac7bb1
diff --git a/apps/web/app/app.dub.co/embed/activity.tsx b/apps/web/app/app.dub.co/embed/activity.tsxindex a6bba1f039..0ca76ac4e8 100644--- a/apps/web/app/app.dub.co/embed/activity.tsx+++ b/apps/web/app/app.dub.co/embed/activity.tsx@@ -1,7 +1,7 @@import { InfoTooltip } from "@dub/ui";import { nFormatter } from "@dub/utils";-export function EmbedWidgetActivity({+export function EmbedActivity({clicks,leads,sales,diff --git a/apps/web/app/app.dub.co/embed/inline/page-client.tsx b/apps/web/app/app.dub.co/embed/inline/page-client.tsxindex b79607cec2..a264899789 100644--- a/apps/web/app/app.dub.co/embed/inline/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/inline/page-client.tsx@@ -12,9 +12,9 @@ import {} from "@dub/ui";import { cn, getPrettyUrl } from "@dub/utils";import { CSSProperties, useState } from "react";-import { EmbedWidgetActivity } from "../activity";-import { EmbedWidgetPayouts } from "../payouts";-import { EmbedWidgetSales } from "../sales";+import { EmbedActivity } from "../activity";+import { EmbedPayouts } from "../payouts";+import { EmbedSales } from "../sales";import { LinkToken } from "../token";export function EmbedInlinePageClient({@@ -83,12 +83,12 @@ export function EmbedInlinePageClient({</div></div><div className="mt-4 grid gap-2 sm:h-32 sm:grid-cols-3">- <EmbedWidgetActivity+ <EmbedActivityclicks={link.clicks}leads={link.leads}sales={link.sales}/>- <EmbedWidgetPayouts />+ <EmbedPayouts /></div><div className="mt-4"><ToggleGroup@@ -102,7 +102,7 @@ export function EmbedInlinePageClient({}}className="w-full rounded-lg"/>- <EmbedWidgetSales salesCount={link.sales} />+ <EmbedSales salesCount={link.sales} /></div><LinkToken /></div>diff --git a/apps/web/app/app.dub.co/embed/inline/page.tsx b/apps/web/app/app.dub.co/embed/inline/page.tsxindex a0740c7d16..d0042127d1 100644--- a/apps/web/app/app.dub.co/embed/inline/page.tsx+++ b/apps/web/app/app.dub.co/embed/inline/page.tsx@@ -8,7 +8,7 @@ export default async function EmbedInlinePage({}) {const { token } = searchParams;- const { link, program, hasPartnerProfile } = await getEmbedData(token);+ const { link, program } = await getEmbedData(token);return <EmbedInlinePageClient program={program} link={link} />;}diff --git a/apps/web/app/app.dub.co/embed/payouts.tsx b/apps/web/app/app.dub.co/embed/payouts.tsxindex 87c18ac435..211b2553cf 100644--- a/apps/web/app/app.dub.co/embed/payouts.tsx+++ b/apps/web/app/app.dub.co/embed/payouts.tsx@@ -1,7 +1,7 @@import { InfoTooltip } from "@dub/ui";import { currencyFormatter } from "@dub/utils";-export function EmbedWidgetPayouts() {+export function EmbedPayouts() {return (<div className="flex flex-col justify-between gap-4 rounded-lg border border-neutral-200 bg-white p-4"><div className="flex items-center gap-1">diff --git a/apps/web/app/app.dub.co/embed/sales.tsx b/apps/web/app/app.dub.co/embed/sales.tsxindex ac58748b77..3bd314a827 100644--- a/apps/web/app/app.dub.co/embed/sales.tsx+++ b/apps/web/app/app.dub.co/embed/sales.tsx@@ -4,7 +4,7 @@ import { Gift, Table, usePagination, useTable } from "@dub/ui";import { currencyFormatter, fetcher, formatDate } from "@dub/utils";import useSWR from "swr";-export function EmbedWidgetSales({ salesCount }: { salesCount: number }) {+export function EmbedSales({ salesCount }: { salesCount: number }) {const { pagination, setPagination } = usePagination(SALES_PAGE_SIZE);const { data: sales, isLoading } = useSWR<PartnerSaleResponse[]>(`/api/embed/sales?page=${pagination.pageIndex}`,diff --git a/apps/web/app/app.dub.co/embed/widget/page-client.tsx b/apps/web/app/app.dub.co/embed/widget/page-client.tsxindex a694a97585..774782399a 100644--- a/apps/web/app/app.dub.co/embed/widget/page-client.tsx+++ b/apps/web/app/app.dub.co/embed/widget/page-client.tsx@@ -21,8 +21,8 @@ import {import { cn, getPrettyUrl } from "@dub/utils";import { motion } from "framer-motion";import { CSSProperties, useState } from "react";-import { EmbedWidgetActivity } from "../activity";-import { EmbedWidgetSales } from "../sales";+import { EmbedActivity } from "../activity";+import { EmbedSales } from "../sales";import { LinkToken } from "../token";import { useIframeVisibility } from "../use-iframe-visibility";@@ -195,7 +195,7 @@ export function EmbedWidgetPageClient({{selectedTab === "rewards" && (<><h2 className="text-sm font-semibold text-neutral-900">- EmbedWidgetActivity+ EmbedActivity</h2><motion.divinitial={{ height: 150, opacity: 0 }}@@ -206,7 +206,7 @@ export function EmbedWidgetPageClient({}}className="overflow-clip">- <EmbedWidgetActivity+ <EmbedActivityclicks={link.clicks}leads={link.leads}sales={link.sales}@@ -215,7 +215,7 @@ export function EmbedWidgetPageClient({<h2 className="text-sm font-semibold text-neutral-900">Recent sales</h2>- <EmbedWidgetSales salesCount={link.sales} />+ <EmbedSales salesCount={link.sales} />{hasPartnerProfile ? (<ahref="https://partners.dub.co/settings/payouts"