Skip to content

Commit 3a48bfa

Browse files
committed
server/views/mailLayout: add types & update to named export
1 parent aecb99a commit 3a48bfa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

server/views/mail.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import renderMjml from '../utils/renderMjml';
2-
import mailLayout from './mailLayout';
2+
import { mailLayout } from './mailLayout';
33
import consolidationMailLayout from './consolidationMailLayout';
44

55
export const renderAccountConsolidation = (data) => {

server/views/mailLayout.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
export default ({
1+
import { EmailWithPrimaryButtonTemplate } from '../types/email';
2+
3+
/** Returns mjml for a standard email with a primary action button */
4+
export const mailLayout = ({
25
domain,
36
headingText,
47
greetingText,
@@ -8,7 +11,7 @@ export default ({
811
directLinkText,
912
noteText,
1013
meta
11-
}) =>
14+
}: EmailWithPrimaryButtonTemplate) =>
1215
`
1316
<mjml>
1417
<mj-head>

0 commit comments

Comments
 (0)