feat: Adiciona settimeout na mensagem de sucesso

This commit is contained in:
Cainã Milech 2023-01-12 12:22:35 -03:00
parent 0d79a59d4a
commit eb01d373a1
2 changed files with 5 additions and 8 deletions

View File

@ -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 = () => {
<Form>
<div className={contato["forms__form-col"]}>
<label htmlFor="name">Nome</label>
<Field
onBlur={() => {
setFeedback(false);
}}
placeholder="Seu nome completo"
id="name"
name="name"
/>
<Field placeholder="Seu nome completo" id="name" name="name" />
<ErrorMessage
component="span"
name="name"

View File

@ -50,6 +50,7 @@
padding: 15px 20px;
@media screen and (min-width: 2500px) {
height: 63px;
font-size: 28px;
line-height: 33px;
}