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.

Update use-link-filters.tsx

Steven Tey57a6e4412298
diff --git a/apps/web/ui/links/use-link-filters.tsx b/apps/web/ui/links/use-link-filters.tsx
index 52aef0479a..fc5f32d227 100644
--- a/apps/web/ui/links/use-link-filters.tsx
+++ b/apps/web/ui/links/use-link-filters.tsx
@@ -6,7 +6,7 @@ import useWorkspace from "@/lib/swr/use-workspace";
import { TagProps } from "@/lib/types";
import { TAGS_MAX_PAGE_SIZE } from "@/lib/zod/schemas/tags";
import { Avatar, BlurImage, Globe, Tag, User, useRouterStuff } from "@dub/ui";
-import { GOOGLE_FAVICON_URL } from "@dub/utils";
+import { GOOGLE_FAVICON_URL, nFormatter } from "@dub/utils";
import { useContext, useMemo, useState } from "react";
import { useDebounce } from "use-debounce";
import { LinksDisplayContext } from "./links-display-provider";
@@ -64,7 +64,7 @@ export function useLinkFilters() {
icon: <TagBadge color={color} withIcon className="sm:p-1" />,
label: name,
data: { color },
- right: count,
+ right: nFormatter(count, { full: true }),
hideDuringSearch,
})) ?? null,
},
@@ -84,7 +84,7 @@ export function useLinkFilters() {
options: domains.map(({ slug, count }) => ({
value: slug,
label: slug,
- right: count,
+ right: nFormatter(count, { full: true }),
})),
},
{
@@ -106,7 +106,7 @@ export function useLinkFilters() {
className="h-4 w-4"
/>
),
- right: count,
+ right: nFormatter(count, { full: true }),
})) ?? null,
},
];