Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-tey committed Sep 12, 2023
1 parent 742ec83 commit fab22c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/app/links/link-filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useRef,
useState,
} from "react";
import { nFormatter, setQueryString } from "#/lib/utils";
import { nFormatter, setQueryString, truncate } from "#/lib/utils";
import { ChevronRight, XCircle, Search, Check, Trash } from "lucide-react";
import useDomains from "#/lib/swr/use-domains";
import { AnimatePresence, motion } from "framer-motion";
Expand Down Expand Up @@ -248,7 +248,7 @@ const DomainsFilter = ({ domains, primaryDomain }) => {
htmlFor={value}
className="flex w-full cursor-pointer justify-between px-3 py-2 pl-0 text-sm font-medium text-gray-700"
>
<p>{punycode.toUnicode(value || "")}</p>
<p>{truncate(punycode.toUnicode(value || ""), 24)}</p>
<Number value={count} unit="links">
<p className="text-gray-500">{nFormatter(count)}</p>
</Number>
Expand Down

0 comments on commit fab22c6

Please sign in to comment.