From eb01d373a125ac6cb8f54789cb602902d471f91f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cain=C3=A3=20Milech?= Date: Thu, 12 Jan 2023 12:22:35 -0300 Subject: [PATCH] feat: Adiciona settimeout na mensagem de sucesso --- .../src/components/MainInstitucional/Contato.tsx | 12 ++++-------- .../assets/modules/Contato.module.scss | 1 + 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/react-project/src/components/MainInstitucional/Contato.tsx b/react-project/src/components/MainInstitucional/Contato.tsx index e146175..8858590 100644 --- a/react-project/src/components/MainInstitucional/Contato.tsx +++ b/react-project/src/components/MainInstitucional/Contato.tsx @@ -76,6 +76,9 @@ const Contato = () => { const [feedback, setFeedback] = useState(false); const Feedback = () => { setFeedback(true); + setTimeout(() => { + setFeedback(false); + }, 14000); }; return ( @@ -94,14 +97,7 @@ const Contato = () => {
- { - setFeedback(false); - }} - placeholder="Seu nome completo" - id="name" - name="name" - /> +