The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update partner-info-cards.tsx
Steven Tey458b00d9f439
diff --git a/apps/web/ui/partners/partner-info-cards.tsx b/apps/web/ui/partners/partner-info-cards.tsxindex cf5af8ddef..aebf917aa9 100644--- a/apps/web/ui/partners/partner-info-cards.tsx+++ b/apps/web/ui/partners/partner-info-cards.tsx@@ -165,15 +165,19 @@ export function PartnerInfoCards({),text: `${isPendingApplication ? "Applied" : "Partner since"} ${formatDate(partner.createdAt)}`,timestamp: partner.createdAt,- wrapper: ({ children }) => (- <button- type="button"- onClick={() => setPartnerEnrollmentHistoryOpen(true)}- className="underline decoration-dotted underline-offset-2"- >- {children}- </button>- ),+ ...(isPendingApplication+ ? {}+ : {+ wrapper: ({ children }) => (+ <button+ type="button"+ onClick={() => setPartnerEnrollmentHistoryOpen(true)}+ className="underline decoration-dotted underline-offset-2"+ >+ {children}+ </button>+ ),+ }),},{id: "payoutMethod" as const,