The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
fix invoice sheet
Kiran K07c7fd206fde
diff --git a/apps/web/lib/payment-methods.ts b/apps/web/lib/payment-methods.tsindex 658e3db53b..7d2a52d14f 100644--- a/apps/web/lib/payment-methods.ts+++ b/apps/web/lib/payment-methods.ts@@ -26,13 +26,13 @@ export const calculatePayoutFeeForMethod = ({export const PAYMENT_METHODS = Object.freeze({link: {- label: "link",+ label: "Link",type: "link",icon: CreditCard,duration: "Instantly",},card: {- label: "card",+ label: "Card",type: "card",icon: CreditCard,duration: "Instantly",diff --git a/apps/web/ui/partners/payout-invoice-sheet.tsx b/apps/web/ui/partners/payout-invoice-sheet.tsxindex d93646a951..88f79aa57b 100644--- a/apps/web/ui/partners/payout-invoice-sheet.tsx+++ b/apps/web/ui/partners/payout-invoice-sheet.tsx@@ -171,6 +171,7 @@ function PayoutInvoiceSheetContent() {value: method.id,label: method.title,icon: method.icon,+ ...(method.fastSettlement && { meta: "+$25" }),}));}, [finalPaymentMethods]);@@ -228,7 +229,7 @@ function PayoutInvoiceSheetContent() {{key: "Method",value: (- <div className="w- flex w-64 items-center justify-between gap-2 pr-6">+ <div className="flex w-full items-center justify-between gap-2">{paymentMethodsLoading ? (<div className="h-[30px] w-full animate-pulse rounded-md bg-neutral-200" />) : (@@ -247,6 +248,13 @@ function PayoutInvoiceSheetContent() {setSelectedPaymentMethod(selectedMethod || null);}}+ optionRight={(option) => {+ return option.meta ? (+ <span className="rounded-md bg-neutral-100 p-1 text-xs font-semibold text-neutral-700">+ {option.meta}+ </span>+ ) : null;+ }}placeholder="Select payment method"buttonProps={{className:@@ -274,7 +282,7 @@ function PayoutInvoiceSheetContent() {{key: "Cutoff Period",value: (- <div className="w-60">+ <div className="w-full"><Comboboxoptions={cutoffPeriodOptions}selected={selectedCutoffPeriodOption}@@ -516,12 +524,12 @@ function PayoutInvoiceSheetContent() {const result = await confirmPayouts({workspaceId,paymentMethodId: selectedPaymentMethod.id.replace("-fast", ""),+ fastSettlement: selectedPaymentMethod.fastSettlement,cutoffPeriod,excludedPayoutIds,amount: amount ?? 0,fee: fee ?? 0,total: total ?? 0,- fastSettlement: selectedPaymentMethod.fastSettlement,});if (!result?.data?.invoiceId) return false;