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