The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
move to /api/partner-profile/invoices/[payoutId]
Kiran K44aec1d4e688
diff --git a/apps/web/app/(ee)/api/partner-profile/payouts/[payoutId]/invoice/route.tsx b/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsxsimilarity index 98%rename from apps/web/app/(ee)/api/partner-profile/payouts/[payoutId]/invoice/route.tsxrename to apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsxindex 774c006171..0ce7c45c63 100644--- a/apps/web/app/(ee)/api/partner-profile/payouts/[payoutId]/invoice/route.tsx+++ b/apps/web/app/(ee)/api/partner-profile/invoices/[payoutId]/route.tsx@@ -28,7 +28,7 @@ const tw = createTw({},});-// GET /api/partner-profile/payouts/[payoutId]/invoice - get the invoice for a payout+// GET /api/partner-profile/invoices/[payoutId] - get the invoice for a payoutexport const GET = withPartnerProfile(async ({ partner, params }) => {const { payoutId } = params;diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsxindex 4b505bb480..09d4e0f85b 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-details-sheet.tsx@@ -89,20 +89,18 @@ function PayoutDetailsSheetContent({ payout }: PayoutDetailsSheetProps) {})}</strong>- {payout.status === "completed" && (- <Tooltip content="View invoice">- <div className="flex h-5 w-5 items-center justify-center rounded-md transition-colors duration-150 hover:border hover:border-neutral-200 hover:bg-neutral-100">- <Link- href={`/api/partner-profile/payouts/${payout.id}/invoice`}- className="text-neutral-700"- target="_blank"- rel="noopener noreferrer"- >- <InvoiceDollar className="size-4" />- </Link>- </div>- </Tooltip>- )}+ <Tooltip content="View invoice">+ <div className="flex h-5 w-5 items-center justify-center rounded-md transition-colors duration-150 hover:border hover:border-neutral-200 hover:bg-neutral-100">+ <Link+ href={`/api/partner-profile/invoices/${payout.id}`}+ className="text-neutral-700"+ target="_blank"+ rel="noopener noreferrer"+ >+ <InvoiceDollar className="size-4" />+ </Link>+ </div>+ </Tooltip></div>),diff --git a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsxindex 6da2308530..3b9d588e57 100644--- a/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx+++ b/apps/web/app/(ee)/partners.dub.co/(dashboard)/settings/payouts/payout-table.tsx@@ -106,7 +106,7 @@ export function PayoutTable() {<Tooltip content="View invoice"><div className="flex h-5 w-5 items-center justify-center rounded-md transition-colors duration-150 hover:border hover:border-neutral-200 hover:bg-neutral-100"><Link- href={`/api/partner-profile/payouts/${row.original.id}/invoice`}+ href={`/api/partner-profile/invoices/${row.original.id}`}className="text-neutral-700"target="_blank"rel="noopener noreferrer"