From 319c14b0e0140c92f2fd0927a7eecfc783553fb4 Mon Sep 17 00:00:00 2001 From: MartinBraquet Date: Sat, 25 Oct 2025 16:32:55 +0200 Subject: [PATCH] Add react import in email Required since using tsx watch src/serve.ts and not nodemon --- backend/email/emails/new-endorsement.tsx | 1 + backend/email/emails/new-match.tsx | 1 + backend/email/emails/new-message.tsx | 1 + backend/email/emails/new-search_alerts.tsx | 1 + backend/email/emails/utils.tsx | 1 + backend/email/emails/welcome.tsx | 1 + 6 files changed, 6 insertions(+) diff --git a/backend/email/emails/new-endorsement.tsx b/backend/email/emails/new-endorsement.tsx index a87ced91..1eb7f857 100644 --- a/backend/email/emails/new-endorsement.tsx +++ b/backend/email/emails/new-endorsement.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Body, Button, Column, Container, Head, Html, Preview, Row, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {DOMAIN} from 'common/envs/constants' diff --git a/backend/email/emails/new-match.tsx b/backend/email/emails/new-match.tsx index f9867f9a..acf74070 100644 --- a/backend/email/emails/new-match.tsx +++ b/backend/email/emails/new-match.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components' import {DOMAIN} from 'common/envs/constants' import {type ProfileRow} from 'common/profiles/profile' diff --git a/backend/email/emails/new-message.tsx b/backend/email/emails/new-message.tsx index f5ae1e9d..7da89312 100644 --- a/backend/email/emails/new-message.tsx +++ b/backend/email/emails/new-message.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {type ProfileRow} from 'common/profiles/profile' diff --git a/backend/email/emails/new-search_alerts.tsx b/backend/email/emails/new-search_alerts.tsx index cc6922f8..185e9a49 100644 --- a/backend/email/emails/new-search_alerts.tsx +++ b/backend/email/emails/new-search_alerts.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Body, Container, Head, Html, Link, Preview, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {mockUser,} from './functions/mock' diff --git a/backend/email/emails/utils.tsx b/backend/email/emails/utils.tsx index 593cd6cd..4936ce5a 100644 --- a/backend/email/emails/utils.tsx +++ b/backend/email/emails/utils.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Column, Img, Link, Row, Section, Text} from "@react-email/components"; import {DOMAIN} from "common/envs/constants"; diff --git a/backend/email/emails/welcome.tsx b/backend/email/emails/welcome.tsx index 83ab337a..6f546143 100644 --- a/backend/email/emails/welcome.tsx +++ b/backend/email/emails/welcome.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import {Body, Button, Container, Head, Html, Preview, Section, Text,} from '@react-email/components' import {type User} from 'common/user' import {mockUser,} from './functions/mock'