diff --git a/src/email/sampleData.ts b/src/email/sampleData.ts index d40670d..94fd2ad 100644 --- a/src/email/sampleData.ts +++ b/src/email/sampleData.ts @@ -105,6 +105,7 @@ export const templates = [ }, ], paymentOptionsUrl: 'https://yaltopia.home/payments', + calendarUrl: 'https://calendar.yaltopia.home/add/rent-REMINDER-0293', }, }, { diff --git a/src/email/templates.tsx b/src/email/templates.tsx index 4891fe3..62c92d7 100644 --- a/src/email/templates.tsx +++ b/src/email/templates.tsx @@ -145,6 +145,7 @@ export interface BillReminderEmailProps extends CommonEmailProps { paymentUrl?: string bankDetails?: BankDetails[] paymentOptionsUrl?: string + calendarUrl?: string } export function BillPaymentReminderEmail(props: BillReminderEmailProps) { @@ -160,6 +161,7 @@ export function BillPaymentReminderEmail(props: BillReminderEmailProps) { paymentUrl, bankDetails, paymentOptionsUrl, + calendarUrl, } = props return (
{paymentUrl ? ( - - Submit payment details - + <> + + Submit payment details + + {calendarUrl && rent && ( + + + Add monthly rent reminder + + + )} + ) : ( Pay using the bank details below and include your reference. @@ -249,6 +260,7 @@ export interface SingleChargeReminderProps extends CommonEmailProps { paymentUrl?: string bankDetails?: BankDetails[] paymentOptionsUrl?: string + calendarUrl?: string } export function RentBillReminderEmail(props: SingleChargeReminderProps) {