Made UID unique, implemented cancel API, Prepared mail footer,

This commit is contained in:
nicolas committed 2021-06-06 03:51:24 +02:00
1 parent c29c0395ef
commit d05ae49e8d
4 files changed
+58 -2

No files matched your search

+9 -1
View File
@@ -46,6 +46,10 @@ const sendEmail = (calEvent: CalendarEvent, {
)
});
//TODO: Get links
const cancelLink = "TODO";
const rescheduleLink = "TODO";
const html = (calEvent: CalendarEvent) => {
const inviteeStart: Dayjs = <Dayjs>dayjs(calEvent.startTime).tz(calEvent.attendees[0].timeZone);
return `
@@ -58,7 +62,11 @@ const html = (calEvent: CalendarEvent) => {
calEvent.location ? `<strong>Location:</strong> ${calEvent.location}<br /><br />` : ''
) +
`Additional notes:<br />
${calEvent.description}
${calEvent.description}<br />
<br />
Need to change this event?<br />
Cancel: {cancelLink}<br />
Reschedule: {rescheduleLink}
</div>
`;
};