From d910b1efba838ac09c34e20e18438da8fa858123 Mon Sep 17 00:00:00 2001 From: Emmanuel Vitor Date: Tue, 17 Jan 2023 22:04:40 -0300 Subject: [PATCH] fix: ajuste de formulario de contato --- package.json | 3 + src/components/BreadCrumb/BreadCreumb.tsx | 2 +- .../BreadCrumb/BreadCrumb.module.scss | 4 + .../Header/HeaderDesk/HeaderTop.tsx | 2 +- .../Header/HeaderMobile/BurguerMenu.tsx | 15 +-- .../Header/styles/Header.module.scss | 1 + src/pages/Home.tsx | 1 + src/pages/Intitucional/Article.tsx | 5 +- ...ontact.module.scss => Contato.module.scss} | 39 +++++-- src/pages/Intitucional/Contato.tsx | 103 ++++++++++-------- .../Intitucional/Institucional.module.scss | 10 +- src/pages/styles.module.scss | 3 +- src/schema/ContactFormSchema.ts | 24 ++-- src/schema/ContactValidations.ts | 5 +- yarn.lock | 38 ++++++- 15 files changed, 179 insertions(+), 76 deletions(-) rename src/pages/Intitucional/{Contact.module.scss => Contato.module.scss} (69%) diff --git a/package.json b/package.json index e52e788..08022ec 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,14 @@ "@types/node": "^16.7.13", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", + "@types/react-input-mask": "^3.0.2", + "@types/react-maskedinput": "^4.0.6", "formik": "^2.2.9", "node-sass": "^8.0.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-headless-accordion": "^1.0.2", + "react-input-mask": "^2.0.4", "react-router-dom": "^6.6.2", "react-scripts": "5.0.1", "typescript": "^4.4.2", diff --git a/src/components/BreadCrumb/BreadCreumb.tsx b/src/components/BreadCrumb/BreadCreumb.tsx index 4b98d5f..49b41a2 100644 --- a/src/components/BreadCrumb/BreadCreumb.tsx +++ b/src/components/BreadCrumb/BreadCreumb.tsx @@ -17,7 +17,7 @@ export const BreadCrumb = () => { {pathname !== "/" && (