feat: add rent calendar reminder link

Made-with: Cursor
This commit is contained in:
“kirukib” 2026-03-12 00:48:14 +03:00
parent b5ff667c6d
commit 4a77f29b58
2 changed files with 16 additions and 3 deletions

View File

@ -105,6 +105,7 @@ export const templates = [
}, },
], ],
paymentOptionsUrl: 'https://yaltopia.home/payments', paymentOptionsUrl: 'https://yaltopia.home/payments',
calendarUrl: 'https://calendar.yaltopia.home/add/rent-REMINDER-0293',
}, },
}, },
{ {

View File

@ -145,6 +145,7 @@ export interface BillReminderEmailProps extends CommonEmailProps {
paymentUrl?: string paymentUrl?: string
bankDetails?: BankDetails[] bankDetails?: BankDetails[]
paymentOptionsUrl?: string paymentOptionsUrl?: string
calendarUrl?: string
} }
export function BillPaymentReminderEmail(props: BillReminderEmailProps) { export function BillPaymentReminderEmail(props: BillReminderEmailProps) {
@ -160,6 +161,7 @@ export function BillPaymentReminderEmail(props: BillReminderEmailProps) {
paymentUrl, paymentUrl,
bankDetails, bankDetails,
paymentOptionsUrl, paymentOptionsUrl,
calendarUrl,
} = props } = props
return ( return (
<BaseEmailShell <BaseEmailShell
@ -205,9 +207,18 @@ export function BillPaymentReminderEmail(props: BillReminderEmailProps) {
</div> </div>
<div className="button-row"> <div className="button-row">
{paymentUrl ? ( {paymentUrl ? (
<a href={paymentUrl} className="primary-button"> <>
Submit payment details <a href={paymentUrl} className="primary-button">
</a> Submit payment details
</a>
{calendarUrl && rent && (
<span className="pill">
<a href={calendarUrl} className="secondary-link">
Add monthly rent reminder
</a>
</span>
)}
</>
) : ( ) : (
<span className="small-text"> <span className="small-text">
Pay using the bank details below and include your reference. Pay using the bank details below and include your reference.
@ -249,6 +260,7 @@ export interface SingleChargeReminderProps extends CommonEmailProps {
paymentUrl?: string paymentUrl?: string
bankDetails?: BankDetails[] bankDetails?: BankDetails[]
paymentOptionsUrl?: string paymentOptionsUrl?: string
calendarUrl?: string
} }
export function RentBillReminderEmail(props: SingleChargeReminderProps) { export function RentBillReminderEmail(props: SingleChargeReminderProps) {