Skip to content

Commit

Permalink
Update react-email to latest (#884)
Browse files Browse the repository at this point in the history
Co-authored-by: Rajesh Gollapudi <[email protected]>
  • Loading branch information
rajeshg and Rajesh Gollapudi authored Nov 4, 2024
1 parent c08c520 commit 9c5d6fd
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 32 deletions.
6 changes: 3 additions & 3 deletions app/utils/email.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { renderAsync } from '@react-email/components'
import { render } from '@react-email/components'
import { type ReactElement } from 'react'
import { z } from 'zod'

Expand Down Expand Up @@ -91,8 +91,8 @@ export async function sendEmail({

async function renderReactEmail(react: ReactElement) {
const [html, text] = await Promise.all([
renderAsync(react),
renderAsync(react, { plainText: true }),
render(react),
render(react, { plainText: true }),
])
return { html, text }
}
56 changes: 28 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-toast": "^1.2.2",
"@radix-ui/react-tooltip": "^1.1.3",
"@react-email/components": "0.0.25",
"@react-email/components": "0.0.27",
"@remix-run/express": "2.13.1",
"@remix-run/node": "2.13.1",
"@remix-run/react": "2.13.1",
Expand Down

0 comments on commit 9c5d6fd

Please sign in to comment.