From dea3b576273eabf80f687e9456d6cc7038969239 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 26 Jan 2026 22:55:13 +0100 Subject: [PATCH] forms --- components/ContactForm.tsx | 28 +++++++++++++++++++++++----- components/RequestQuoteForm.tsx | 28 +++++++++++++++++++++++++++- 2 files changed, 50 insertions(+), 6 deletions(-) diff --git a/components/ContactForm.tsx b/components/ContactForm.tsx index b0eac7eb..eb9d3487 100644 --- a/components/ContactForm.tsx +++ b/components/ContactForm.tsx @@ -58,6 +58,29 @@ export default function ContactForm() { ); } + if (status === 'error') { + return ( + +
+ + + + + +
+ + {t('form.errorTitle') || 'Submission Failed!'} + +

+ {t('form.error') || 'Something went wrong. Please check your input and try again.'} +

+ +
+ ); + } + return ( @@ -100,11 +123,6 @@ export default function ContactForm() { required /> - {status === 'error' && ( -
- {t('form.error') || 'An error occurred. Please try again later.'} -
- )}
+
+ ); + } + return (