The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
use `MEGA_WORKSPACE_LINKS_LIMIT` for usage tab switching
Steven Teyd924091ad1a4
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsxindex 9aa6bd6b98..f1931cbdd5 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/settings/billing/plan-usage.tsx@@ -1,5 +1,6 @@"use client";+import { MEGA_WORKSPACE_LINKS_LIMIT } from "@/lib/constants/misc";import useGroupsCount from "@/lib/swr/use-groups-count";import usePartnersCount from "@/lib/swr/use-partners-count";import useTagsCount from "@/lib/swr/use-tags-count";@@ -116,7 +117,7 @@ export default function PlanUsage() {limit: linksLimit,},];- if (totalLinks && totalLinks > 10_000) {+ if (totalLinks && totalLinks > MEGA_WORKSPACE_LINKS_LIMIT) {// Find the links tab and move it to the first positionconst linksTabIndex = tabs.findIndex((tab) => tab.id === "links");if (linksTabIndex !== -1) {