Skip to content

Commit 6a4d288

Browse files
committed
simplify again
1 parent 0419634 commit 6a4d288

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

apps/web/ui/partners/confirm-payouts-sheet.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ import {
4747
fetcher,
4848
formatDate,
4949
nFormatter,
50+
pluralize,
5051
truncate,
5152
} from "@dub/utils";
5253
import { useAction } from "next-safe-action/hooks";
@@ -817,15 +818,17 @@ function ConfirmPayoutsSheetContent() {
817818
{holdPayoutsCount > 0 && holdPayoutsAmount && (
818819
<div className="flex items-center justify-center gap-2 text-sm text-neutral-600">
819820
<span>
821+
Excluding{" "}
820822
<span className="font-medium text-neutral-800">
821823
{nFormatter(holdPayoutsCount, { full: true })}
822-
</span>{" "}
823-
{holdPayoutsCount === 1 ? "payout is" : "payouts are"} also on
824-
hold, totaling{" "}
824+
</span>
825+
{` on hold ${pluralize("payout", holdPayoutsCount)} `}
825826
<span className="font-medium text-neutral-800">
827+
(
826828
{currencyFormatter(holdPayoutsAmount, {
827829
trailingZeroDisplay: "stripIfInteger",
828830
})}
831+
)
829832
</span>
830833
</span>
831834
<Button

0 commit comments

Comments
 (0)