The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Add group request copy to the application rejected email
Rafiaf50187c2253
diff --git a/packages/email/src/templates/program-application-rejected.tsx b/packages/email/src/templates/program-application-rejected.tsxindex 8905e9bd2d..0212c0abf5 100644--- a/packages/email/src/templates/program-application-rejected.tsx+++ b/packages/email/src/templates/program-application-rejected.tsx@@ -30,6 +30,7 @@ export default function ProgramApplicationRejected({slug: "acme",supportEmail: "[email protected]",},+ isApplyingToAdditionalGroup = false,rejectionReason,additionalNotes,reapplicationTimeframe = "standard",@@ -43,6 +44,9 @@ export default function ProgramApplicationRejected({slug: string;supportEmail?: string | null;};+ // An approved partner asked to join another group, so their partnership+ // is not affected and the reapplication timeframe does not apply+ isApplyingToAdditionalGroup?: boolean;rejectionReason?: string | null;additionalNotes?: string | null;reapplicationTimeframe?: ReapplicationTimeframe;@@ -54,9 +58,11 @@ export default function ProgramApplicationRejected({<Html><Head /><Preview>- {reapplicationTimeframe === "instant"- ? `Program status update — you can submit a new application to ${program.name}`- : `Program status update — your application to join ${program.name} was not approved`}+ {isApplyingToAdditionalGroup+ ? `Program status update: your request to join a new group in ${program.name} was not approved`+ : reapplicationTimeframe === "instant"+ ? `Program status update — you can submit a new application to ${program.name}`+ : `Program status update — your application to join ${program.name} was not approved`}</Preview><Tailwind><Body className="mx-auto my-auto bg-white font-sans">@@ -69,21 +75,39 @@ export default function ProgramApplicationRejected({Program status update</Heading>- <Text className="mt-6 text-sm leading-6 text-neutral-600">- Thank you for your interest in joining the{" "}- <strong>{program.name}</strong> partner program. We appreciate the- time it took to apply.- </Text>+ {isApplyingToAdditionalGroup ? (+ <>+ <Text className="mt-6 text-sm leading-6 text-neutral-600">+ Thank you for your interest in joining a new group in the{" "}+ <strong>{program.name}</strong> partner program.+ </Text>- <Text className="text-sm leading-6 text-neutral-600">- After reviewing your application, we've decided not to- approve you at this time.- {reapplicationTimeframe === "instant"- ? " You can submit a new application whenever you're ready."- : reapplicationTimeframe === "standard"- ? ` You will be able to re-apply in ${STANDARD_REAPPLICATION_DAYS} days.`- : null}- </Text>+ <Text className="text-sm leading-6 text-neutral-600">+ After reviewing your request to join a new group in{" "}+ <strong>{program.name}</strong>, we've decided not to+ approve it at this time. Your current partnership with{" "}+ <strong>{program.name}</strong> is not affected.+ </Text>+ </>+ ) : (+ <>+ <Text className="mt-6 text-sm leading-6 text-neutral-600">+ Thank you for your interest in joining the{" "}+ <strong>{program.name}</strong> partner program. We appreciate+ the time it took to apply.+ </Text>++ <Text className="text-sm leading-6 text-neutral-600">+ After reviewing your application, we've decided not to+ approve you at this time.+ {reapplicationTimeframe === "instant"+ ? " You can submit a new application whenever you're ready."+ : reapplicationTimeframe === "standard"+ ? ` You will be able to re-apply in ${STANDARD_REAPPLICATION_DAYS} days.`+ : null}+ </Text>+ </>+ )}{reason ? (<Text className="text-sm leading-6 text-neutral-600">@@ -101,7 +125,8 @@ export default function ProgramApplicationRejected({</Text>) : null}- {reapplicationTimeframe === "instant" ? (+ {!isApplyingToAdditionalGroup &&+ reapplicationTimeframe === "instant" ? (<Section className="my-8 mt-8"><Linkhref={`${PARTNERS_DOMAIN}/apply/${program.slug}`}