From 4ab3edc97b87278212e17b1f0d92708c78e67b64 Mon Sep 17 00:00:00 2001
From: MartinBraquet
Date: Thu, 11 Sep 2025 18:37:31 +0200
Subject: [PATCH] Add email footer
---
backend/api/package.json | 10 +-
backend/email/emails/test.tsx | 24 +++--
backend/email/emails/utils.tsx | 11 ++-
backend/email/package.json | 13 +--
backend/email/tsconfig.json | 2 +
backend/email/yarn.lock | 143 -----------------------------
common/src/socials.ts | 9 +-
package.json | 5 +-
web/components/user/social.tsx | 13 ++-
web/package.json | 2 +-
yarn.lock | 161 +++++++++++++++------------------
11 files changed, 129 insertions(+), 264 deletions(-)
diff --git a/backend/api/package.json b/backend/api/package.json
index c8332f49..6ee15bc2 100644
--- a/backend/api/package.json
+++ b/backend/api/package.json
@@ -1,7 +1,7 @@
{
"name": "@compass/api",
"description": "Backend API endpoints",
- "version": "0.1.0",
+ "version": "1.0.0",
"private": true,
"scripts": {
"watch:compile": "npx concurrently \"tsc -b --watch --preserveWatchOutput\" \"(cd ../../common && tsc-alias --watch)\" \"(cd ../shared && tsc-alias --watch)\" \"(cd ../email && tsc-alias --watch)\" \"tsc-alias --watch\"",
@@ -27,7 +27,7 @@
"dependencies": {
"@google-cloud/monitoring": "4.0.0",
"@google-cloud/secret-manager": "4.2.1",
- "@react-email/components": "0.0.33",
+ "@react-email/components": "0.5.3",
"@supabase/supabase-js": "2.38.5",
"@tiptap/core": "2.3.2",
"@tiptap/extension-blockquote": "2.3.2",
@@ -41,6 +41,8 @@
"@tiptap/pm": "2.3.2",
"@tiptap/starter-kit": "2.3.2",
"@tiptap/suggestion": "2.3.2",
+ "@types/react": "18.2.0",
+ "@types/react-dom": "18.2.0",
"colors": "1.4.0",
"cors": "2.8.5",
"dayjs": "1.11.4",
@@ -51,8 +53,8 @@
"lodash": "4.17.21",
"pg-promise": "11.4.1",
"posthog-node": "4.11.0",
- "react": "19.0.0",
- "react-dom": "19.0.0",
+ "react": "18.2.0",
+ "react-dom": "18.2.0",
"react-email": "3.0.7",
"resend": "4.1.2",
"string-similarity": "4.0.4",
diff --git a/backend/email/emails/test.tsx b/backend/email/emails/test.tsx
index e7f74b05..e3c1486f 100644
--- a/backend/email/emails/test.tsx
+++ b/backend/email/emails/test.tsx
@@ -1,19 +1,17 @@
'use server'
-import { Head, Html, Preview, Tailwind, Text } from '@react-email/components'
-import React from 'react'
+import * as React from 'react'
+import { Html, Head, Preview, Tailwind, Text } from '@react-email/components'
-export const Test = (props: { name: string }) => {
- return (
-
-
- Helloo {props.name}
-
- Hello {props.name}
-
-
- )
-}
+export const Test = ({ name }: { name: string }) => (
+
+