From 006c2dacc4ffee967b88f759438a902dcfa36220 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Thu, 22 May 2025 12:30:35 +0000 Subject: [PATCH] Add WhatsApp number to registration Adds a WhatsApp number field to the registration form and includes it in the data sent to the webhook. --- src/components/auth/RegisterForm.tsx | 12 ++++++++++++ src/utils/webhookService.ts | 1 + 2 files changed, 13 insertions(+) diff --git a/src/components/auth/RegisterForm.tsx b/src/components/auth/RegisterForm.tsx index 6d8225c..cf307d4 100644 --- a/src/components/auth/RegisterForm.tsx +++ b/src/components/auth/RegisterForm.tsx @@ -20,6 +20,7 @@ const RegisterForm = ({ isLoading, setIsLoading }: RegisterFormProps) => { const [nome, setNome] = useState(''); const [empresa, setEmpresa] = useState(''); const [email, setEmail] = useState(''); + const [whatsapp, setWhatsapp] = useState(''); const [senha, setSenha] = useState(''); const [confirmaSenha, setConfirmaSenha] = useState(''); @@ -65,6 +66,7 @@ const RegisterForm = ({ isLoading, setIsLoading }: RegisterFormProps) => { nome, empresa, email, + whatsapp, data_cadastro: new Date().toISOString(), origem: window.location.origin, }; @@ -139,6 +141,16 @@ const RegisterForm = ({ isLoading, setIsLoading }: RegisterFormProps) => { required /> +