We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aecb99a commit 3a48bfaCopy full SHA for 3a48bfa
server/views/mail.js
@@ -1,5 +1,5 @@
1
import renderMjml from '../utils/renderMjml';
2
-import mailLayout from './mailLayout';
+import { mailLayout } from './mailLayout';
3
import consolidationMailLayout from './consolidationMailLayout';
4
5
export const renderAccountConsolidation = (data) => {
server/views/mailLayout.ts
@@ -1,4 +1,7 @@
-export default ({
+import { EmailWithPrimaryButtonTemplate } from '../types/email';
+
+/** Returns mjml for a standard email with a primary action button */
+export const mailLayout = ({
domain,
6
headingText,
7
greetingText,
@@ -8,7 +11,7 @@ export default ({
8
11
directLinkText,
9
12
noteText,
10
13
meta
-}) =>
14
+}: EmailWithPrimaryButtonTemplate) =>
15
`
16
<mjml>
17
<mj-head>
0 commit comments