templates transfered to Server side
This commit is contained in:
1 parent
0781d3984c
commit
e58658320e
4 files changed
+9
-69
No files matched your search
@@ -1,8 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
const PasswordReset = () => {
|
||||
const { html, errors } = render(
|
||||
<mjml>
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-font
|
||||
name="Roboto"
|
||||
@@ -52,15 +48,4 @@ const PasswordReset = () => {
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
);
|
||||
|
||||
if (errors.length > 0) {
|
||||
console.error("MJML Errors:", errors);
|
||||
return null; // Handle errors gracefully
|
||||
}
|
||||
|
||||
return <div dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
};
|
||||
|
||||
export default PasswordReset;
|
||||
</mjml>
|
||||
@@ -1,8 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
const ServerIsDown = () => {
|
||||
const { html, errors } = render(
|
||||
<mjml>
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-font
|
||||
name="Roboto"
|
||||
@@ -73,15 +69,4 @@ const ServerIsDown = () => {
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
);
|
||||
|
||||
if (errors.length > 0) {
|
||||
console.error("MJML Errors:", errors);
|
||||
return null; // Handle errors gracefully
|
||||
}
|
||||
|
||||
return <div dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
};
|
||||
|
||||
export default ServerIsDown;
|
||||
</mjml>
|
||||
@@ -1,9 +1,5 @@
|
||||
import React from "react";
|
||||
|
||||
const ServerIsUp = () => {
|
||||
const { html, errors } = render(
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-font
|
||||
name="Roboto"
|
||||
href="https://fonts.googleapis.com/css?family=Roboto:300,500"
|
||||
@@ -79,15 +75,4 @@ const ServerIsUp = () => {
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
);
|
||||
|
||||
if (errors.length > 0) {
|
||||
console.error("MJML Errors:", errors);
|
||||
return null; // Handle errors gracefully
|
||||
}
|
||||
|
||||
return <div dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
};
|
||||
|
||||
export default ServerIsUp;
|
||||
</mjml>
|
||||
@@ -1,8 +1,4 @@
|
||||
import React from "react";
|
||||
|
||||
const WelcomeEmail = () => {
|
||||
const { html, errors } = render(
|
||||
<mjml>
|
||||
<mjml>
|
||||
<mj-head>
|
||||
<mj-font
|
||||
name="Roboto"
|
||||
@@ -52,15 +48,4 @@ const WelcomeEmail = () => {
|
||||
</mj-column>
|
||||
</mj-section>
|
||||
</mj-body>
|
||||
</mjml>
|
||||
);
|
||||
|
||||
if (errors.length > 0) {
|
||||
console.error("MJML Errors:", errors);
|
||||
return null; // Handle errors gracefully
|
||||
}
|
||||
|
||||
return <div dangerouslySetInnerHTML={{ __html: html }} />;
|
||||
};
|
||||
|
||||
export default WelcomeEmail;
|
||||
</mjml>
|
||||
Reference in new issue
Block a user