Skip to content

Commit ad7e9be

Browse files
NicolappsConvex, Inc.
authored andcommitted
Reverse the order of the spending limits on the Billing page (#35327)
GitOrigin-RevId: c6d8b36a7f3c8b3aa33b249cd649a5e2b49b41bc
1 parent e4d878f commit ad7e9be

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

npm-packages/dashboard/src/components/billing/SubscriptionOverview.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export function SpendingLimitsSection({
195195

196196
{!showForm ? (
197197
<>
198-
<div className="flex flex-wrap gap-x-12 gap-y-4">
198+
<div className="flex flex-wrap gap-x-8 gap-y-4">
199199
{currentSpendLimit === undefined ? (
200200
<>
201201
<Loading className="h-12 w-36" fullHeight={false} />
@@ -206,20 +206,20 @@ export function SpendingLimitsSection({
206206
<p>You don’t have any spending limits set.</p>
207207
) : (
208208
<>
209-
{currentSpendLimit.disableThresholdCents !== null && (
210-
<CostLabel
211-
label="Spending limit"
212-
priceCents={currentSpendLimit.disableThresholdCents}
213-
tooltip={`If your usage exceeds ${currentSpendLimit.disableThresholdCents === 0 ? "the built-in limits of your plan" : "this amount"}, all your projects will be paused.`}
214-
/>
215-
)}
216209
{currentSpendLimit.warningThresholdCents !== null && (
217210
<CostLabel
218211
label="Warning threshold"
219212
priceCents={currentSpendLimit.warningThresholdCents}
220213
tooltip="If your usage exceeds this amount, admins in your team will be notified by email."
221214
/>
222215
)}
216+
{currentSpendLimit.disableThresholdCents !== null && (
217+
<CostLabel
218+
label="Spending limit"
219+
priceCents={currentSpendLimit.disableThresholdCents}
220+
tooltip={`If your usage exceeds ${currentSpendLimit.disableThresholdCents === 0 ? "the built-in limits of your plan" : "this amount"}, all your projects will be paused.`}
221+
/>
222+
)}
223223
</>
224224
)}
225225
</div>

0 commit comments

Comments
 (0)