The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Change your notification preferences link
Kiran Kb7610c585248
diff --git a/packages/email/src/templates/new-sale-alert-program-owner.tsx b/packages/email/src/templates/new-sale-alert-program-owner.tsxindex 24d164f81b..8ee463498f 100644--- a/packages/email/src/templates/new-sale-alert-program-owner.tsx+++ b/packages/email/src/templates/new-sale-alert-program-owner.tsx@@ -65,7 +65,8 @@ export function NewSaleAlertProgramOwner({earnings: number;};}) {- const linkToProgram = `https://app.dub.co/${workspace.slug}/programs/${program.id}/sales?partnerId=${partner.id}`;+ const salesLink = `https://app.dub.co/${workspace.slug}/programs/${program.id}/sales?partnerId=${partner.id}`;+ const notificationPreferencesLink = `https://app.dub.co/${workspace.slug}/settings/notifications`;const saleAmountInDollars = currencyFormatter(sale.amount / 100, {minimumFractionDigits: 2,@@ -186,7 +187,7 @@ export function NewSaleAlertProgramOwner({<Text className="text-sm leading-6 text-neutral-600">You can view sales and commissions in the{" "}- <Link href={linkToProgram} className="text-blue-600 underline">+ <Link href={salesLink} className="text-blue-600 underline">program dashboard</Link>.@@ -194,6 +195,15 @@ export function NewSaleAlertProgramOwner({<Text className="text-sm leading-6 text-neutral-600">Thanks!</Text>+ <Text className="text-sm leading-6 text-neutral-600">+ <Link+ href={notificationPreferencesLink}+ className="text-neutral-500 underline"+ >+ Change your notification preferences+ </Link>+ </Text>+<Footer email={user.email} /></Container></Body>