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 payout-settings-modal.tsx

Kiran K17e64183d991
diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-settings-modal.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-settings-modal.tsx
index 56a6d410d2..f23dbe2450 100644
--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-settings-modal.tsx
+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/payouts/payout-settings-modal.tsx
@@ -96,45 +96,52 @@ function PayoutSettingsModalInner({
{/* Minimum withdrawal amount */}
<div className="space-y-10 bg-neutral-50 p-4 sm:p-6">
- <div>
- <h4 className="text-base font-semibold leading-6 text-neutral-900">
- Minimum withdrawal amount
- </h4>
- <p className="text-sm font-medium leading-5 text-neutral-500">
- Set the minimum amount for funds to be withdrawn from Dub into your
- connected payout account.
- </p>
- </div>
-
- <div>
- <div className="mb-2 text-2xl font-medium leading-6 text-neutral-800">
- {currencyFormatter(minWithdrawalAmount / 100)} USD
+ <div className="space-y-6">
+ <div>
+ <h4 className="text-base font-semibold leading-6 text-neutral-900">
+ Minimum withdrawal amount
+ </h4>
+ <p className="text-sm font-medium leading-5 text-neutral-500">
+ Set the minimum amount for funds to be withdrawn from Dub into
+ your connected payout account.
+ </p>
</div>
- <Slider
- value={minWithdrawalAmount}
- min={MINIMUM_WITHDRAWAL_AMOUNTS[0]}
- max={
- MINIMUM_WITHDRAWAL_AMOUNTS[MINIMUM_WITHDRAWAL_AMOUNTS.length - 1]
- }
- onChange={(value) => {
- const closest = MINIMUM_WITHDRAWAL_AMOUNTS.reduce((prev, curr) =>
- Math.abs(curr - value) < Math.abs(prev - value) ? curr : prev,
- );
-
- setValue("minWithdrawalAmount", closest, { shouldDirty: true });
- }}
- marks={MINIMUM_WITHDRAWAL_AMOUNTS}
- hint={
- minWithdrawalAmount < MIN_WITHDRAWAL_AMOUNT_CENTS
- ? `${currencyFormatter(BELOW_MIN_WITHDRAWAL_FEE_CENTS / 100)} payout fee for payouts under $100`
- : undefined
- }
- />
+ <div>
+ <div className="mb-2 text-2xl font-medium leading-6 text-neutral-800">
+ {currencyFormatter(minWithdrawalAmount / 100)} USD
+ </div>
+
+ <Slider
+ value={minWithdrawalAmount}
+ min={MINIMUM_WITHDRAWAL_AMOUNTS[0]}
+ max={
+ MINIMUM_WITHDRAWAL_AMOUNTS[
+ MINIMUM_WITHDRAWAL_AMOUNTS.length - 1
+ ]
+ }
+ onChange={(value) => {
+ const closest = MINIMUM_WITHDRAWAL_AMOUNTS.reduce(
+ (prev, curr) =>
+ Math.abs(curr - value) < Math.abs(prev - value)
+ ? curr
+ : prev,
+ );
+
+ setValue("minWithdrawalAmount", closest, { shouldDirty: true });
+ }}
+ marks={MINIMUM_WITHDRAWAL_AMOUNTS}
+ hint={
+ minWithdrawalAmount < MIN_WITHDRAWAL_AMOUNT_CENTS
+ ? `${currencyFormatter(BELOW_MIN_WITHDRAWAL_FEE_CENTS / 100)} payout fee for payouts under $100`
+ : undefined
+ }
+ />
+ </div>
</div>
{/* Invoice details */}
- <div className="space-y-4">
+ <div className="space-y-6">
<div>
<h4 className="text-base font-semibold leading-6 text-neutral-900">
Invoice details (optional)