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.

Keep the reapplication timeframe in the group request rejection email

Rafiad8dabcea610
diff --git a/packages/email/src/templates/program-application-rejected.tsx b/packages/email/src/templates/program-application-rejected.tsx
index 234869cf8c..e25fa15474 100644
--- a/packages/email/src/templates/program-application-rejected.tsx
+++ b/packages/email/src/templates/program-application-rejected.tsx
@@ -45,7 +45,7 @@ export default function ProgramApplicationRejected({
supportEmail?: string | null;
};
// An approved partner asked to join another group, so their partnership
- // is not affected and the reapplication timeframe does not apply
+ // is not affected
isApplyingToAdditionalGroup?: boolean;
rejectionReason?: string | null;
additionalNotes?: string | null;
@@ -54,6 +54,13 @@ export default function ProgramApplicationRejected({
const reason = rejectionReason?.trim();
const notes = additionalNotes?.trim();
+ const reapplicationText =
+ 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;
+
return (
<Html>
<Head />
@@ -87,6 +94,7 @@ export default function ProgramApplicationRejected({
<strong>{program.name}</strong>, we&apos;ve decided not to
approve it at this time. Your current partnership with{" "}
<strong>{program.name}</strong> is not affected.
+ {reapplicationText}
</Text>
</>
) : (
@@ -100,11 +108,7 @@ export default function ProgramApplicationRejected({
<Text className="text-sm leading-6 text-neutral-600">
After reviewing your application, we&apos;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}
+ {reapplicationText}
</Text>
</>
)}