From 50347d049dc477771fb85e5460c80ca5173f7d54 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Thu, 5 Feb 2026 14:08:06 +0100 Subject: [PATCH] style: add danger button variant and fix contact form error state --- components/ContactForm.tsx | 74 +++++++++++++++++++++++---------- components/RequestQuoteForm.tsx | 68 ++++++++++++++++++++++-------- components/ui/Button.tsx | 51 ++++++++++++++++------- 3 files changed, 140 insertions(+), 53 deletions(-) diff --git a/components/ContactForm.tsx b/components/ContactForm.tsx index eb9d3487..71ebfded 100644 --- a/components/ContactForm.tsx +++ b/components/ContactForm.tsx @@ -17,7 +17,7 @@ export default function ContactForm() { const formData = new FormData(e.currentTarget); const email = formData.get('email') as string; - + try { const result = await sendContactFormAction(formData); if (result.success) { @@ -41,7 +41,12 @@ export default function ContactForm() { return (
- +
@@ -49,7 +54,8 @@ export default function ContactForm() { {t('form.successTitle') || 'Message Sent!'}

- {t('form.successDesc') || 'Thank you for your message. We will get back to you as soon as possible.'} + {t('form.successDesc') || + 'Thank you for your message. We will get back to you as soon as possible.'}

@@ -89,9 +101,9 @@ export default function ContactForm() {
-
-
-