Skip to content

Commit 8075fa1

Browse files
author
joeldevelops
committed
Fixes for react email to run in the deno env
1 parent 2b4d966 commit 8075fa1

File tree

11 files changed

+29
-3
lines changed

11 files changed

+29
-3
lines changed

packages/app/public/discord.png

11.6 KB
Loading

packages/app/public/linkedin.png

8.07 KB
Loading

packages/app/public/youtube.png

8.71 KB
Loading

packages/core/deno.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,8 @@
2727
"resend": "npm:resend@^4.5.2",
2828
"stripe": "npm:stripe@^18.2.1",
2929
"zod": "npm:zod@^3.24.4"
30+
},
31+
"compilerOptions": {
32+
"jsx": "react"
3033
}
3134
}

packages/core/src/email/templates/DowngradeEmail.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
import React from "react";
14
import { Heading, Section, Text } from "@react-email/components";
25
import { baseTemplate } from "./base.tsx";
36
import { headingStyle } from "./styles.tsx";

packages/core/src/email/templates/InvitationEmail.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
import React from "react";
14
import { Button, Heading, Section, Text } from "@react-email/components";
25
import { baseTemplate } from "./base.tsx";
36
import { headingStyle } from "./styles.tsx";

packages/core/src/email/templates/OtpEmail.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
import React from "react";
14
import { Heading, Section, Text } from "@react-email/components";
25
import { baseTemplate } from "./base.tsx";
36
import { headingStyle } from "./styles.tsx";
@@ -12,7 +15,8 @@ const codeStyle = {
1215
color: "#222",
1316
fontFamily: "roboto mono, monospace",
1417
fontSize: "28px",
15-
textAlign: "center",
18+
// deno-lint-ignore no-explicit-any
19+
textAlign: "center" as any,
1620
letterSpacing: "5px",
1721
};
1822

packages/core/src/email/templates/UpgradeEmail.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
import React from "react";
14
import { Heading, Section, Text } from "@react-email/components";
25
import { baseTemplate } from "./base.tsx";
36
import { headingStyle } from "./styles.tsx";

packages/core/src/email/templates/WelcomeEmail.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
// deno-lint-ignore no-undef
4+
import React from "react";
15
import {
26
Button,
37
Column,

packages/core/src/email/templates/base.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/** @jsx React.createElement */
2+
/** @jsxFrag React.Fragment */
3+
import React from "react";
4+
import ReactDOM from "react-dom/server";
15
import type { ReactNode } from "react";
26
import {
37
Body,
@@ -20,7 +24,8 @@ const bodyStyle = {
2024
};
2125

2226
const sectionStyle = {
23-
textAlign: "center",
27+
// deno-lint-ignore no-explicit-any
28+
textAlign: "center" as any,
2429
};
2530

2631
const tableStyle = {

packages/core/src/email/templates/styles.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export const headingStyle = {
2-
textAlign: "center",
2+
// deno-lint-ignore no-explicit-any
3+
textAlign: "center" as any,
34
fontFamily: "Arial, sans-serif",
45
marginTop: "30px",
56
marginBottom: "40px",

0 commit comments

Comments
 (0)