feat: Adiciona settimeout na mensagem de sucesso #8

Merged
cainamilech merged 1 commits from feature/footer into develop 2023-01-12 15:24:22 +00:00
2 changed files with 5 additions and 8 deletions
Showing only changes of commit eb01d373a1 - Show all commits

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;
}