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"), +});