Skip to content

Commit d9f210b

Browse files
committed
Modal and text improvements
1 parent 3317325 commit d9f210b

File tree

1 file changed

+11
-9
lines changed
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches

1 file changed

+11
-9
lines changed

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.branches/route.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -690,14 +690,14 @@ function PurchaseBranchesModal({
690690
state === "decrease" ? "text-error" : state === "increase" ? "text-success" : undefined;
691691

692692
const pricePerBranch = branchPricing.centsPerStep / branchPricing.stepSize / 100;
693-
const title = extraBranches === 0 ? "Purchase extra branches" : "Add/remove branches";
693+
const title = extraBranches === 0 ? "Purchase extra branches" : "Add/remove extra branches";
694694

695695
return (
696696
<Dialog open={open} onOpenChange={setOpen}>
697697
<DialogTrigger asChild>
698698
{triggerButton ?? (
699699
<Button variant="primary/small" onClick={() => setOpen(true)}>
700-
Purchase more…
700+
{title}
701701
</Button>
702702
)}
703703
</DialogTrigger>
@@ -816,7 +816,9 @@ function PurchaseBranchesModal({
816816
type="submit"
817817
disabled={isLoading}
818818
>
819-
{`Send request for ${formatNumber(amountValue)}`}
819+
<span className="tabular-nums text-text-bright">{`Send request for ${formatNumber(
820+
amountValue
821+
)}`}</span>
820822
</Button>
821823
</>
822824
) : state === "decrease" || state === "need_to_archive" ? (
@@ -828,9 +830,9 @@ function PurchaseBranchesModal({
828830
disabled={isLoading || state === "need_to_archive"}
829831
LeadingIcon={isLoading ? SpinnerWhite : undefined}
830832
>
831-
{`Remove ${formatNumber(extraBranches - amountValue)} ${
832-
extraBranches - amountValue === 1 ? "branch" : "branches"
833-
}`}
833+
<span className="tabular-nums text-text-bright">{`Remove ${formatNumber(
834+
extraBranches - amountValue
835+
)} ${extraBranches - amountValue === 1 ? "branch" : "branches"}`}</span>
834836
</Button>
835837
</>
836838
) : (
@@ -842,9 +844,9 @@ function PurchaseBranchesModal({
842844
disabled={isLoading || state === "no_change"}
843845
LeadingIcon={isLoading ? SpinnerWhite : undefined}
844846
>
845-
{`Purchase ${formatNumber(amountValue - extraBranches)} ${
846-
amountValue - extraBranches === 1 ? "branch" : "branches"
847-
}`}
847+
<span className="tabular-nums text-text-bright">{`Purchase ${formatNumber(
848+
amountValue - extraBranches
849+
)} ${amountValue - extraBranches === 1 ? "branch" : "branches"}`}</span>
848850
</Button>
849851
</>
850852
)

0 commit comments

Comments
 (0)