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.

use EnrolledPartnerProps instead

Steven Teybabe42a1ca8a
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index 1e21227736..ed9b45bc08 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -43,7 +43,7 @@ import { createLinkBodySchema } from "./zod/schemas/links";
import { createOAuthAppSchema, oAuthAppSchema } from "./zod/schemas/oauth";
import {
createPartnerSchema,
- EnrolledPartnerSchema,
+ EnrolledPartnerSchemaWithExpandedFields,
PartnerSchema,
} from "./zod/schemas/partners";
import {
@@ -385,7 +385,9 @@ export type ProgramPartnerLinkProps = z.infer<typeof ProgramPartnerLinkSchema>;
export type PartnerProfileLinkProps = z.infer<typeof PartnerProfileLinkSchema>;
-export type EnrolledPartnerProps = z.infer<typeof EnrolledPartnerSchema>;
+export type EnrolledPartnerProps = z.infer<
+ typeof EnrolledPartnerSchemaWithExpandedFields
+>;
export type DiscountProps = z.infer<typeof DiscountSchema>;
diff --git a/apps/web/ui/partners/online-presence-summary.tsx b/apps/web/ui/partners/online-presence-summary.tsx
index 71a43ae60d..2140d6a4d4 100644
--- a/apps/web/ui/partners/online-presence-summary.tsx
+++ b/apps/web/ui/partners/online-presence-summary.tsx
@@ -1,4 +1,4 @@
-import { PartnerProps } from "@/lib/types";
+import { EnrolledPartnerProps } from "@/lib/types";
import { Tooltip } from "@dub/ui";
import { BadgeCheck2Fill } from "@dub/ui/icons";
import { cn, getPrettyUrl } from "@dub/utils";
@@ -6,7 +6,7 @@ import { Fragment } from "react";
const fields: {
label: string;
- data: (partner: PartnerProps) => {
+ data: (partner: EnrolledPartnerProps) => {
value: string | null;
verified: boolean;
href: string | null;
@@ -66,7 +66,7 @@ export function OnlinePresenceSummary({
partner,
className,
}: {
- partner: PartnerProps;
+ partner: EnrolledPartnerProps;
className?: string;
}) {
const fieldData = fields