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.

nFormatter(count, { full: true})

Steven Tey032fd3db8b30
diff --git a/apps/web/ui/analytics/toggle.tsx b/apps/web/ui/analytics/toggle.tsx
index 352c1f7ad6..a15d2397f1 100644
--- a/apps/web/ui/analytics/toggle.tsx
+++ b/apps/web/ui/analytics/toggle.tsx
@@ -27,6 +27,7 @@ import {
getApexDomain,
getNextPlan,
linkConstructor,
+ nFormatter,
} from "@dub/utils";
import {
AppWindow,
@@ -105,7 +106,7 @@ export default function Toggle() {
className="h-4 w-4 sm:h-4 sm:w-4"
/>
),
- right: count,
+ right: nFormatter(count, { full: true }),
}),
) ?? null,
},
@@ -161,7 +162,7 @@ export default function Toggle() {
className="h-2.5 w-4"
/>
),
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
{
@@ -179,7 +180,7 @@ export default function Toggle() {
className="h-2.5 w-4"
/>
),
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
{
@@ -193,7 +194,7 @@ export default function Toggle() {
icon: (
<DeviceIcon display={device} tab="devices" className="h-4 w-4" />
),
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
{
@@ -211,7 +212,7 @@ export default function Toggle() {
className="h-4 w-4"
/>
),
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
{
@@ -223,7 +224,7 @@ export default function Toggle() {
value: os,
label: os,
icon: <DeviceIcon display={os} tab="os" className="h-4 w-4" />,
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
],