Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,6 @@ export async function GET(req: Request) {
email: user.email,
},
program: {
id: program.id,
name: program.name,
},
payout: {
Expand Down
1 change: 0 additions & 1 deletion apps/web/lib/api/partners/notify-partner-application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export async function notifyPartnerApplication({
comments: application.comments,
},
program: {
id: program.id,
name: program.name,
},
workspace: {
Expand Down
1 change: 0 additions & 1 deletion apps/web/lib/api/partners/notify-partner-sale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export async function notifyPartnerSale({

const data = {
program: {
id: program.id,
name: program.name,
slug: program.slug,
logo: program.logo,
Expand Down
4 changes: 1 addition & 3 deletions packages/email/src/templates/campaign-imported.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export function CampaignImported({
slug: "acme",
},
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Cal",
},
}: {
Expand All @@ -31,7 +30,6 @@ export function CampaignImported({
slug: string;
};
program: {
id: string;
name: string;
};
}) {
Expand All @@ -51,7 +49,7 @@ export function CampaignImported({
<Text className="text-sm leading-6 text-black">
We have successfully imported your {provider} campaign{" "}
<Link
href={`https://app.dub.co/${workspace.slug}/programs/${program.id}/partners`}
href={`https://app.dub.co/${workspace.slug}/program/partners`}
className="font-medium text-blue-600 no-underline"
>
{program.name}↗
Expand Down
4 changes: 0 additions & 4 deletions packages/email/src/templates/new-sale-alert-partner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,9 @@ import { Footer } from "../components/footer";
export function NewSaleAlertPartner({
email = "[email protected]",
partner = {
id: "pn_OfewI1Faaf5pV8QH3mha8L7S",
referralLink: "https://refer.dub.co/steven",
},
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Acme",
slug: "acme",
logo: DUB_WORDMARK,
Expand All @@ -33,11 +31,9 @@ export function NewSaleAlertPartner({
}: {
email: string;
partner: {
id: string;
referralLink: string;
};
program: {
id: string;
name: string;
slug: string;
logo: string | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export function NewSaleAlertProgramOwner({
slug: "acme",
},
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Acme",
logo: DUB_WORDMARK,
holdingPeriodDays: 30,
Expand All @@ -50,7 +49,6 @@ export function NewSaleAlertProgramOwner({
slug: string;
};
program: {
id: string;
name: string;
logo: string | null;
holdingPeriodDays: number;
Expand All @@ -65,7 +63,7 @@ export function NewSaleAlertProgramOwner({
earnings: number;
};
}) {
const salesLink = `https://app.dub.co/${workspace.slug}/programs/${program.id}/sales?partnerId=${partner.id}`;
const salesLink = `https://app.dub.co/${workspace.slug}/program/commissions?partnerId=${partner.id}`;
const notificationPreferencesLink = `https://app.dub.co/${workspace.slug}/settings/notifications`;

const saleAmountInDollars = currencyFormatter(sale.amount / 100, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export function PartnerApplicationReceived({
"This is a text field the applicant can fill out with details about the question asked above.",
},
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Acme",
},
workspace = {
Expand All @@ -47,14 +46,13 @@ export function PartnerApplicationReceived({
comments: string | null;
};
program: {
id: string;
name: string;
};
workspace: {
slug: string;
};
}) {
const applicationUrl = `https://app.dub.co/${workspace.slug}/programs/${program.id}/partners?status=pending&partnerId=${partner.id}`;
const applicationUrl = `https://app.dub.co/${workspace.slug}/program/partners?status=pending&partnerId=${partner.id}`;

return (
<Html>
Expand Down
10 changes: 7 additions & 3 deletions packages/email/src/templates/partner-payout-failed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ export default function PartnerPayoutFailed({
<span className="font-semibold text-neutral-800">
${payout.failureFee / 100} payment failure fee
</span>
{payout.cardLast4 &&
` to your card ending in ${(
{payout.cardLast4 && (
<>
{" "}
to your card ending in{" "}
<span className="font-semibold text-purple-600">
{payout.cardLast4}
</span>
)}.`}
</>
)}
.
</Text>
)}

Expand Down
2 changes: 0 additions & 2 deletions packages/email/src/templates/partner-payout-sent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { Footer } from "../components/footer";
export function PartnerPayoutSent({
email = "[email protected]",
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Acme",
logo: DUB_WORDMARK,
},
Expand All @@ -30,7 +29,6 @@ export function PartnerPayoutSent({
}: {
email: string;
program: {
id: string;
name: string;
logo: string | null;
};
Expand Down
4 changes: 1 addition & 3 deletions packages/email/src/templates/program-payout-reminder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function ProgramPayoutReminder({
slug: "acme",
},
program = {
id: "prog_CYCu7IMAapjkRpTnr8F1azjN",
name: "Acme",
},
payout = {
Expand All @@ -35,7 +34,6 @@ export default function ProgramPayoutReminder({
slug: string;
};
program: {
id: string;
name: string;
};
payout: {
Expand Down Expand Up @@ -94,7 +92,7 @@ export default function ProgramPayoutReminder({

<Section className="mt-6 text-center">
<Link
href={`https://app.dub.co/${workspace.slug}/programs/${program.id}/payouts?status=pending&sortBy=amount&confirmPayouts=true`}
href={`https://app.dub.co/${workspace.slug}/program/payouts?status=pending&sortBy=amount&confirmPayouts=true`}
className="box-border block w-full rounded-lg bg-black px-0 py-4 text-center text-sm leading-none text-white no-underline"
>
Review and confirm payouts
Expand Down