From 95f3597f76e318bf583c844e5651ca4bef50042b Mon Sep 17 00:00:00 2001 From: Tom Webber Date: Wed, 24 Sep 2025 19:27:43 +0200 Subject: [PATCH] fix(contact): add missing email in error pop-up --- dictionaries/en.ts | 2 +- src/components/meta-components/contact-form.tsx | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/dictionaries/en.ts b/dictionaries/en.ts index 76e5f59..4ba558e 100644 --- a/dictionaries/en.ts +++ b/dictionaries/en.ts @@ -426,7 +426,7 @@ export const enDictionary: Dictionary = { }, error: { title: 'Unexpected error...', - message: 'Please contact us instead by sending a mail to', + message: 'Please contact us instead by sending an email to', }, }, legal: { diff --git a/src/components/meta-components/contact-form.tsx b/src/components/meta-components/contact-form.tsx index 9941b8c..c087260 100644 --- a/src/components/meta-components/contact-form.tsx +++ b/src/components/meta-components/contact-form.tsx @@ -32,6 +32,8 @@ import { getDictionary } from '@/locales/dictionaries'; import { nav } from '@/locales/routing'; import { sendForm } from '@/mail/mailer'; +import { EmailContact } from '../telecom-etude/contact'; + type Fields = 'name' | 'email' | 'tel' | 'societe' | 'subject' | 'message'; const ListFields = ['name', 'email', 'tel', 'societe', 'subject', 'message']; @@ -181,7 +183,14 @@ export default function ContactForm({ {t[success ? 'success' : 'error'].title} - {t[success ? 'success' : 'error'].message} + {success ? ( + <>{t.success.message} + ) : ( +
+

{t.error.message}

+ +
+ )}
{success ? (