diff --git a/package.json b/package.json index a897a76..9893dbf 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "@types/node": "^16.7.13", "@types/react": "^18.0.0", "@types/react-dom": "^18.0.0", + "cpf-cnpj-validator": "^1.0.3", "formik": "^2.2.9", "react": "^18.2.0", "react-dom": "^18.2.0", @@ -18,7 +19,8 @@ "sass": "^1.57.1", "typescript": "^4.4.2", "web-vitals": "^2.1.0", - "yup": "^0.32.11" + "yup": "^0.32.11", + "yup-phone": "^1.3.2" }, "scripts": { "start": "react-scripts start", diff --git a/src/App.tsx b/src/App.tsx index 07c176e..9129662 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,12 @@ -import React from "react"; import "./App.css"; import { createBrowserRouter, RouterProvider } from "react-router-dom"; import Header from "./components/Header"; import NewsLetter from "./components/newsLetter"; import Institutional from "./pages/Institutional"; import Footer from "./components/Footer"; -import AsideMenu from "./components/AsideMenu"; +import FixedIcons from "./components/FixedIcon"; +import Up from "./assets/svg/Up.svg"; +import Wpp from "./assets/svg/Wpp.svg"; const router = createBrowserRouter([ { @@ -20,6 +21,22 @@ function App() {
+ { + window.scrollTo({ top: 0, behavior: "smooth" }); + }, + imgUrl: Up, + }, + { + action: () => { + window.open("https://api.whatsapp.com/send?phone=552225215720"); + }, + imgUrl: Wpp, + }, + ]} + />