templates transfered to Server side

This commit is contained in:
MuhammadKhalilzadeh committed 2024-07-17 22:09:17 +03:30
1 parent 0781d3984c
commit e58658320e
4 files changed
-60

No files matched your search

@@ -1,7 +1,3 @@
import React from "react";
const PasswordReset = () => {
const { html, errors } = render(
<mjml> <mjml>
<mj-head> <mj-head>
<mj-font <mj-font
@@ -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,7 +1,3 @@
import React from "react";
const ServerIsDown = () => {
const { html, errors } = render(
<mjml> <mjml>
<mj-head> <mj-head>
<mj-font <mj-font
@@ -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,7 +1,3 @@
import React from "react";
const ServerIsUp = () => {
const { html, errors } = render(
<mjml> <mjml>
<mj-head> <mj-head>
<mj-font <mj-font
@@ -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,7 +1,3 @@
import React from "react";
const WelcomeEmail = () => {
const { html, errors } = render(
<mjml> <mjml>
<mj-head> <mj-head>
<mj-font <mj-font
@@ -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;