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.

defaultLinks cleanups

Kiran K6d8c3849339c
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/links.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/links.tsx
index 59530a8417..ce9fb83ccf 100644
--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/links.tsx
+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/links.tsx
@@ -10,10 +10,7 @@ interface Props {
Program,
"domain" | "url" | "urlValidationMode" | "maxPartnerLinks"
>;
- group: Pick<
- PartnerGroup,
- "id" | "defaultLinks" | "additionalLinks" | "maxPartnerLinks"
- >;
+ group: Pick<PartnerGroup, "id" | "additionalLinks" | "maxPartnerLinks">;
}
export default function ReferralsEmbedLinks({ links, program, group }: Props) {
@@ -34,7 +31,6 @@ export default function ReferralsEmbedLinks({ links, program, group }: Props) {
) : (
<ReferralsEmbedLinksList
links={links}
- program={program}
group={group}
onCreateLink={() => setCreateLink(true)}
onEditLink={(link) => {
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx b/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
index bd3b938cdc..b5ff8c95a6 100644
--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/page-client.tsx
@@ -64,11 +64,7 @@ export function ReferralsEmbedPageClient({
};
group: Pick<
PartnerGroup,
- | "id"
- | "defaultLinks"
- | "additionalLinks"
- | "maxPartnerLinks"
- | "linkStructure"
+ "id" | "additionalLinks" | "maxPartnerLinks" | "linkStructure"
>;
themeOptions: ThemeOptions;
dynamicHeight: boolean;
diff --git a/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts b/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts
index 91864517a4..eaf50c9ca2 100644
--- a/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts
+++ b/apps/web/app/(ee)/app.dub.co/embed/referrals/utils.ts
@@ -89,7 +89,6 @@ export const getReferralsEmbedData = async (token: string) => {
},
group: {
id: group.id,
- defaultLinks: group.defaultLinks,
additionalLinks: group.additionalLinks,
maxPartnerLinks: group.maxPartnerLinks,
linkStructure: group.linkStructure,
diff --git a/apps/web/lib/types.ts b/apps/web/lib/types.ts
index dd1ae9fc59..ada1c4a72e 100644
--- a/apps/web/lib/types.ts
+++ b/apps/web/lib/types.ts
@@ -544,9 +544,9 @@ export type PartnerGroupAdditionalLink = z.infer<
>;
export type PartnerGroupProps = PartnerGroup & {
- defaultLinks: PartnerGroupDefaultLink[];
additionalLinks: PartnerGroupAdditionalLink[];
};
+
export type BountyProps = z.infer<typeof BountySchema>;
export type BountyListProps = z.infer<typeof BountyListSchema>;
export type BountyExtendedProps = z.infer<typeof BountySchemaExtended>;
diff --git a/apps/web/lib/zod/schemas/programs.ts b/apps/web/lib/zod/schemas/programs.ts
index 08079ccae7..8373d090cf 100644
--- a/apps/web/lib/zod/schemas/programs.ts
+++ b/apps/web/lib/zod/schemas/programs.ts
@@ -134,7 +134,6 @@ export const ProgramEnrollmentSchema = z.object({
"If the partner was banned from the program, this is the reason for the ban.",
),
group: GroupSchema.pick({
- defaultLinks: true,
additionalLinks: true,
maxPartnerLinks: true,
linkStructure: true,