The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
code improvements
Pedro Ladeirac8ebcf632c72
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsxindex faf747573b..c61757c6f4 100644--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/activity.tsx@@ -7,12 +7,6 @@ import useSWR from "swr";import { useEmbedToken } from "../../embed/use-embed-token";import { useReferralsEmbedData } from "./page-client";-const METRIC_TO_CHART_FIELD = {- clicks: "clicks",- leads: "leads",- conversions: "sales",-} as const;-export function ReferralsEmbedActivity() {const {group: { brandColor: color },@@ -55,20 +49,20 @@ export function ReferralsEmbedActivity() {{label: "Clicks",value: clicks,- chartField: METRIC_TO_CHART_FIELD.clicks,+ chartField: "clicks",description:"Total number of unique clicks your link has received",},{label: "Leads",value: leads,- chartField: METRIC_TO_CHART_FIELD.leads,+ chartField: "leads",description: "Total number of signups that came from your link",},{label: "Conversions",value: conversions,- chartField: METRIC_TO_CHART_FIELD.conversions,+ chartField: "sales",description:"Total number of leads that converted to a paid account",},