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.

improve BankAccountRequirementsModal

Steven Tey25424ccf0c02
diff --git a/apps/web/ui/partners/payouts/bank-account-requirements-modal.tsx b/apps/web/ui/partners/payouts/bank-account-requirements-modal.tsx
index 8ac30fff51..78ab430baa 100644
--- a/apps/web/ui/partners/payouts/bank-account-requirements-modal.tsx
+++ b/apps/web/ui/partners/payouts/bank-account-requirements-modal.tsx
@@ -18,12 +18,11 @@ function BankAccountRequirementsModal({
}) {
const { partner } = usePartnerProfile();
- const BANK_ACCOUNT_REQUIREMENTS = useMemo(() => {
+ const PAYOUT_GUIDELINES = useMemo(() => {
return [
`1. Bank account must be in your local currency.${partner?.country ? ` Since you're based in [${COUNTRIES[partner.country]}](https://partners.dub.co/profile), you need to connect a **${COUNTRY_CURRENCY_CODES[partner.country]} bank account** to receive payouts.` : ""}`,
- "2. Bank account must be a **checking account** (not a savings account or debit card).",
- "3. Bank account holder name must match your partner account name.",
- "4. Bank account details are 100% accurate (no typos or missing numbers).",
+ "2. Please enter accurate bank account details (no typos or missing numbers).",
+ `3. For Stripe's **"Website"** requirement – provide your personal website, or a social media profile if you don't have one.`,
];
}, [partner?.country]);
@@ -35,20 +34,20 @@ function BankAccountRequirementsModal({
<Modal showModal={showModal} setShowModal={setShowModal}>
<div className="flex items-center justify-between p-6">
<h3 className="text-lg font-semibold text-neutral-900">
- Bank account requirements
+ Payout guidelines
</h3>
</div>
- <div className="flex flex-col gap-6 border-t border-neutral-200 bg-neutral-50 p-6">
+ <div className="flex flex-col gap-4 border-t border-neutral-200 bg-neutral-50 p-6">
<Callout variant="warn" size={2}>
- If your bank account does not meet these requirements, payouts may be
- delayed or rejected.
+ If you do not follow these guidelines, payouts may be delayed or
+ rejected.
</Callout>
<div className="flex flex-col gap-2 text-sm text-neutral-800">
- <p className="font-semibold">Requirements:</p>
+ <p className="font-semibold">Guidelines:</p>
<Markdown className="list-decimal">
- {BANK_ACCOUNT_REQUIREMENTS.join("\n")}
+ {PAYOUT_GUIDELINES.join("\n")}
</Markdown>
<label className="flex cursor-pointer gap-3 rounded-lg border border-neutral-300 p-3">
@@ -61,8 +60,8 @@ function BankAccountRequirementsModal({
/>
</div>
<span className="text-sm leading-5 text-neutral-900">
- I confirm that my bank account meets all of the above
- requirements.
+ I confirm that I have read the guidelines above, and any payout
+ failures will be my sole responsibility.
</span>
</label>
</div>
@@ -78,7 +77,7 @@ function BankAccountRequirementsModal({
disabled={!acknowledged}
disabledTooltip={
!acknowledged
- ? "You must acknowledge the requirements before continuing."
+ ? "You must acknowledge the guidelines before continuing."
: undefined
}
/>
diff --git a/apps/web/ui/partners/payouts/payout-method-dropdown.tsx b/apps/web/ui/partners/payouts/payout-method-dropdown.tsx
index ae56f495e2..50478769c9 100644
--- a/apps/web/ui/partners/payouts/payout-method-dropdown.tsx
+++ b/apps/web/ui/partners/payouts/payout-method-dropdown.tsx
@@ -61,6 +61,7 @@ export function PayoutMethodDropdown() {
const handleAction = useCallback(
(type: PartnerPayoutMethod, isManage: boolean) => {
+ setOpenPopover(false);
connect(type, { isManage });
},
[connect],