The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
confirm all pending payouts
Steven Tey7964d30d6fa2
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsxindex 97acf64625..a6f5eb7f7b 100644--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/payouts/payout-details-sheet.tsx@@ -323,25 +323,41 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {<div className="sticky bottom-0 z-10 border-t border-neutral-200 bg-white"><div className="flex items-center justify-between gap-2 p-5">{payout.status === "pending" ? (- <Button- type="button"- text="Confirm payout"- disabledTooltip={- !payout.partner.payoutsEnabledAt- ? "This partner has not [connected a bank account](https://dub.co/help/article/receiving-payouts) to receive payouts yet, which means they won't be able to receive payouts from your program."- : permissionsError || undefined- }- onClick={() => {- queryParams({- set: {- confirmPayouts: "true",- selectedPayoutId: payout.id,- },- del: "payoutId",- scroll: false,- });- }}- />+ <div className="flex w-full flex-col gap-2 sm:flex-row">+ <Button+ type="button"+ text="Confirm this payout"+ variant="secondary"+ disabledTooltip={+ !payout.partner.payoutsEnabledAt+ ? "This partner has not [connected a bank account](https://dub.co/help/article/receiving-payouts) to receive payouts yet, which means they won't be able to receive payouts from your program."+ : permissionsError || undefined+ }+ onClick={() => {+ queryParams({+ set: {+ confirmPayouts: "true",+ selectedPayoutId: payout.id,+ },+ del: "payoutId",+ scroll: false,+ });+ }}+ />+ <Button+ type="button"+ text="Confirm all pending payouts"+ onClick={() => {+ queryParams({+ set: {+ confirmPayouts: "true",+ },+ del: "payoutId",+ scroll: false,+ });+ }}+ />+ </div>) : (<ViewAllPayoutsLink />)}