From e8952e776b7b6440289ab0b923e1e54ec463ea40 Mon Sep 17 00:00:00 2001 From: Rafael Sampaio Date: Tue, 10 Jan 2023 13:00:56 -0300 Subject: [PATCH] =?UTF-8?q?refactor:=20ajusta=20footer=20top=20mobile=20co?= =?UTF-8?q?nforme=20altera=C3=A7=C3=B5es=20no=20figma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FooterTop/styles.module.scss | 8 ------- src/components/Main/Contact/index.tsx | 24 ++++++++------------- src/components/NewsLetter/index.tsx | 13 +++++------ src/schema/NewsLetterSchema.ts | 5 +++++ 4 files changed, 21 insertions(+), 29 deletions(-) create mode 100644 src/schema/NewsLetterSchema.ts diff --git a/src/components/FooterTop/styles.module.scss b/src/components/FooterTop/styles.module.scss index 2bc0a9d..37e01a5 100644 --- a/src/components/FooterTop/styles.module.scss +++ b/src/components/FooterTop/styles.module.scss @@ -114,14 +114,6 @@ text-transform: none; } } - - &__socialMedia { - height: 35px; - - .socialMeida-site { - display: none; - } - } } @media (min-width: 2500px) { diff --git a/src/components/Main/Contact/index.tsx b/src/components/Main/Contact/index.tsx index 8ea422e..5402a56 100644 --- a/src/components/Main/Contact/index.tsx +++ b/src/components/Main/Contact/index.tsx @@ -110,10 +110,8 @@ const Contact = () => {
- ( + + {({ field }: any) => ( { type="text" /> )} - /> + {
- ( + + {({ field }: any) => ( { type="text" /> )} - /> + {
- ( + + {({ field }: any) => ( { type="text" /> )} - /> + { - const handleFormikSubmit = (values: FormikValues) => { + const handleNewsletterSubmit = (values: FormikValues, { resetForm }: any) => { console.log(values); + resetForm({ values: "" }); }; return ( @@ -22,9 +23,9 @@ const NewsLetter = () => {

Assine nossa Newsletter

{ placeholder="E-mail" /> - diff --git a/src/schema/NewsLetterSchema.ts b/src/schema/NewsLetterSchema.ts new file mode 100644 index 0000000..1a86df9 --- /dev/null +++ b/src/schema/NewsLetterSchema.ts @@ -0,0 +1,5 @@ +import * as Yup from "yup"; + +export default Yup.object().shape({ + newsLetter: Yup.string().required("").email("e-Mail inválido"), +}); -- 2.34.1