From e933f601c19cd8dd255f1d639c8b017291cf919a Mon Sep 17 00:00:00 2001 From: Steven Tey Date: Sat, 4 Jan 2025 15:58:38 -0800 Subject: [PATCH] fix trailingZeroDisplay ts error --- .../programs/[programId]/program-metrics.tsx | 14 +++++++------- .../[slug]/settings/billing/plan-usage.tsx | 2 +- .../programs/[programSlug]/page-client.tsx | 4 ++-- apps/web/ui/analytics/bar-list.tsx | 2 +- apps/web/ui/analytics/events/events-tabs.tsx | 2 +- apps/web/ui/analytics/main.tsx | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/program-metrics.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/program-metrics.tsx index 7fb141cfcb..1a342c595b 100644 --- a/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/program-metrics.tsx +++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/programs/[programId]/program-metrics.tsx @@ -81,16 +81,16 @@ function Stat({ ) : ( )} diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/plan-usage.tsx index 61d0a0621e..87532735b6 100644 --- a/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/plan-usage.tsx +++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/settings/billing/plan-usage.tsx @@ -240,7 +240,7 @@ function UsageTabCard({ ? { style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", } : { diff --git a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/page-client.tsx b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/page-client.tsx index 04adb27bc9..bdd6036221 100644 --- a/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/page-client.tsx +++ b/apps/web/app/partners.dub.co/(dashboard)/programs/[programSlug]/page-client.tsx @@ -208,7 +208,7 @@ function EarningsChart() { format={{ style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", }} /> @@ -354,7 +354,7 @@ function StatCard({ format={{ style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", }} /> diff --git a/apps/web/ui/analytics/bar-list.tsx b/apps/web/ui/analytics/bar-list.tsx index 888f948ccd..044ae2d6ea 100644 --- a/apps/web/ui/analytics/bar-list.tsx +++ b/apps/web/ui/analytics/bar-list.tsx @@ -189,7 +189,7 @@ export function LineItem({ ? { style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", } : { diff --git a/apps/web/ui/analytics/events/events-tabs.tsx b/apps/web/ui/analytics/events/events-tabs.tsx index 4e376bbe02..1cab61d454 100644 --- a/apps/web/ui/analytics/events/events-tabs.tsx +++ b/apps/web/ui/analytics/events/events-tabs.tsx @@ -114,7 +114,7 @@ export default function EventsTabs({ ? { style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", } : { diff --git a/apps/web/ui/analytics/main.tsx b/apps/web/ui/analytics/main.tsx index 204cb98af7..02da5d2e27 100644 --- a/apps/web/ui/analytics/main.tsx +++ b/apps/web/ui/analytics/main.tsx @@ -139,7 +139,7 @@ export default function Main() { ? { style: "currency", currency: "USD", - // @ts-ignore – this is a valid option but TS is outdated + // @ts-ignore – trailingZeroDisplay is a valid option but TS is outdated trailingZeroDisplay: "stripIfInteger", } : {