The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
rearrange
Steven Tey1ca3de00014f
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsxindex 977efcca41..c8eb97afc0 100644--- a/apps/web/ui/analytics/toggle.tsx+++ b/apps/web/ui/analytics/toggle.tsx@@ -89,6 +89,28 @@ export default function Toggle() {),})),},+ {+ key: "link",+ icon: Link,+ label: "Link",+ options:+ links?.map(+ ({ domain, key, url, count }: LinkProps & { count?: number }) => ({+ value: linkConstructor({ domain, key }),+ label: linkConstructor({ domain, key, pretty: true }),+ icon: (+ <BlurImage+ src={`${GOOGLE_FAVICON_URL}${getApexDomain(url)}`}+ alt={getApexDomain(url)}+ className="rounded-full"+ width={16}+ height={16}+ />+ ),+ right: count,+ }),+ ) ?? null,+ },{key: "tagId",icon: Tag,@@ -206,28 +228,6 @@ export default function Toggle() {right: count,})) ?? null,},- {- key: "link",- icon: Link,- label: "Link",- options:- links?.map(- ({ domain, key, url, count }: LinkProps & { count?: number }) => ({- value: linkConstructor({ domain, key }),- label: linkConstructor({ domain, key, pretty: true }),- icon: (- <BlurImage- src={`${GOOGLE_FAVICON_URL}${getApexDomain(url)}`}- alt={getApexDomain(url)}- className="rounded-full"- width={16}- height={16}- />- ),- right: count,- }),- ) ?? null,- },],[domains, tags],);