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.

add saleAmount in parenthesis

Steven Tey15bbe366876b
diff --git a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/[programId]/page-client.tsx b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/[programId]/page-client.tsx
index 46ea9774a4..2455c8679b 100644
--- a/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/[programId]/page-client.tsx
+++ b/apps/web/app/partners.dub.co/(dashboard)/[partnerId]/[programId]/page-client.tsx
@@ -310,9 +310,14 @@ function StatCard({
>
<span className="block text-sm text-neutral-500">{title}</span>
{total !== undefined ? (
- <span className="block text-2xl text-neutral-800">
+ <div className="flex items-center gap-1 text-2xl text-neutral-800">
{nFormatter(total[event])}
- </span>
+ {event === "sales" && (
+ <span className="text-base text-neutral-500">
+ ({currencyFormatter(total.saleAmount / 100)})
+ </span>
+ )}
+ </div>
) : (
<div className="h-8 w-16 animate-pulse rounded-md bg-neutral-200" />
)}