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 route.tsx

Kiran Ka735533f1e9b
diff --git a/apps/web/app/app.dub.co/invoices/[invoiceId]/route.tsx b/apps/web/app/app.dub.co/invoices/[invoiceId]/route.tsx
index 0648b0ba24..d28bd1fcaf 100644
--- a/apps/web/app/app.dub.co/invoices/[invoiceId]/route.tsx
+++ b/apps/web/app/app.dub.co/invoices/[invoiceId]/route.tsx
@@ -3,7 +3,6 @@ import { withSession } from "@/lib/auth";
import { stripe } from "@/lib/stripe";
import { prisma } from "@dub/prisma";
import {
- capitalize,
currencyFormatter,
DUB_WORDMARK,
formatDate,
@@ -51,7 +50,6 @@ export const GET = withSession(async ({ session, params }) => {
select: {
periodStart: true,
periodEnd: true,
- type: true,
amount: true,
partner: {
select: {
@@ -285,11 +283,6 @@ export const GET = withSession(async ({ session, params }) => {
>
Period
</Text>
- <Text
- style={tw("w-1/6 p-3.5 text-sm font-medium text-neutral-700")}
- >
- Type
- </Text>
<Text
style={tw("w-1/6 p-3.5 text-sm font-medium text-neutral-700")}
>
@@ -331,7 +324,6 @@ export const GET = withSession(async ({ session, params }) => {
"-"
)}
</Text>
- <Text style={tw("w-1/6 p-3.5")}>{capitalize(payout.type)}</Text>
<Text style={tw("w-1/6 p-3.5")}>
{currencyFormatter(payout.amount / 100, {
minimumFractionDigits: 2,