From 40541d3da2fd157f9fde0f47bd00012f34830909 Mon Sep 17 00:00:00 2001 From: Owen Date: Thu, 4 Jun 2026 21:29:44 +0200 Subject: [PATCH] improve fields for contact and add send icon --- src/pages/Contact/Contact.tsx | 65 ++++++++++++++++++++++++----------- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/src/pages/Contact/Contact.tsx b/src/pages/Contact/Contact.tsx index 5d10898..22ee876 100644 --- a/src/pages/Contact/Contact.tsx +++ b/src/pages/Contact/Contact.tsx @@ -1,12 +1,13 @@ import { useActionState } from "react"; +import { LuSend } from "react-icons/lu"; import Section from "#/components/Section.tsx"; interface IFormField { fieldName: string; type: "text" | "email" | "textarea"; placeholder: string; - label: string; - required: boolean; + required?: boolean; + textarea?: boolean; } type IProps = { @@ -20,18 +21,36 @@ const FormField = ({ type, fieldName, placeholder, - label, - required, + required = false, + textarea = false, }: IFormField) => (
- - + + {textarea ? ( +