Fixes: Collection creation notification email

Added: Unsubscribe option to notification email footers
Added: Two new notification types (emails not written yet)
Fixed: Validation added to notification setting events
This commit is contained in:
Tom Moor
2018-12-05 23:44:41 -08:00
parent cc8dacba32
commit 9ca0038d39
8 changed files with 131 additions and 17 deletions

View File

@ -14,6 +14,7 @@ export type Props = {
document: Document,
collection: Collection,
eventName: string,
unsubscribeUrl: string,
};
export const documentNotificationEmailText = ({
@ -36,6 +37,7 @@ export const DocumentNotificationEmail = ({
document,
collection,
eventName = 'published',
unsubscribeUrl,
}: Props) => {
return (
<EmailTemplate>
@ -60,7 +62,7 @@ export const DocumentNotificationEmail = ({
</p>
</Body>
<Footer />
<Footer unsubscribeUrl={unsubscribeUrl} />
</EmailTemplate>
);
};