diff --git a/adilson-fernando/package-lock.json b/adilson-fernando/package-lock.json index d058086..b7c604c 100644 --- a/adilson-fernando/package-lock.json +++ b/adilson-fernando/package-lock.json @@ -15,12 +15,14 @@ "@types/node": "^16.18.11", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", + "accordion": "^3.0.2", "cpf": "^2.0.1", "date-fns": "^2.28.0", "formik": "^2.2.9", "module-name": "^0.0.1-security", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", "react-router-dom": "^6.6.1", "react-scripts": "5.0.1", @@ -4376,6 +4378,11 @@ "node": ">= 0.6" } }, + "node_modules/accordion": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/accordion/-/accordion-3.0.2.tgz", + "integrity": "sha512-jbQfFaw+57OBwPt7qSNHuW+RA8smmRwkWRS1Ozh6K/QxUspBgBV/LpdSzlY7vee8TomS6j3D33B9rIeH1qMwsA==" + }, "node_modules/acorn": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", @@ -14297,6 +14304,14 @@ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz", "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==" }, + "node_modules/react-headless-accordion": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-headless-accordion/-/react-headless-accordion-1.0.2.tgz", + "integrity": "sha512-wKBTB/+aAr9MGX5RYi3sdmKOSzevKdmbGRw9JTe7XONiHlTo+pC1OiggL9NUxp5QeQcTnX0rryhuySeGsqBfBg==", + "peerDependencies": { + "react": "^18.2.0" + } + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -20410,6 +20425,11 @@ "negotiator": "0.6.3" } }, + "accordion": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/accordion/-/accordion-3.0.2.tgz", + "integrity": "sha512-jbQfFaw+57OBwPt7qSNHuW+RA8smmRwkWRS1Ozh6K/QxUspBgBV/LpdSzlY7vee8TomS6j3D33B9rIeH1qMwsA==" + }, "acorn": { "version": "8.8.1", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", @@ -27426,6 +27446,12 @@ "resolved": "https://registry.npmjs.org/react-fast-compare/-/react-fast-compare-2.0.4.tgz", "integrity": "sha512-suNP+J1VU1MWFKcyt7RtjiSWUjvidmQSlqu+eHslq+342xCbGTYmC0mEhPCOHxlW0CywylOC1u2DFAT+bv4dBw==" }, + "react-headless-accordion": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/react-headless-accordion/-/react-headless-accordion-1.0.2.tgz", + "integrity": "sha512-wKBTB/+aAr9MGX5RYi3sdmKOSzevKdmbGRw9JTe7XONiHlTo+pC1OiggL9NUxp5QeQcTnX0rryhuySeGsqBfBg==", + "requires": {} + }, "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", diff --git a/adilson-fernando/package.json b/adilson-fernando/package.json index 09197a3..34f69cf 100644 --- a/adilson-fernando/package.json +++ b/adilson-fernando/package.json @@ -10,12 +10,14 @@ "@types/node": "^16.18.11", "@types/react": "^18.0.26", "@types/react-dom": "^18.0.10", + "accordion": "^3.0.2", "cpf": "^2.0.1", "date-fns": "^2.28.0", "formik": "^2.2.9", "module-name": "^0.0.1-security", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-headless-accordion": "^1.0.2", "react-modal": "^3.16.1", "react-router-dom": "^6.6.1", "react-scripts": "5.0.1", diff --git a/adilson-fernando/src/components/Footer/MenuFooter.tsx b/adilson-fernando/src/components/Footer/MenuFooter.tsx index 1f6502d..2c6fa43 100644 --- a/adilson-fernando/src/components/Footer/MenuFooter.tsx +++ b/adilson-fernando/src/components/Footer/MenuFooter.tsx @@ -1,4 +1,5 @@ -import React, { useState } from "react"; +import React from "react"; +import {Accordion, AccordionBody, AccordionHeader, AccordionItem} from "react-headless-accordion"; import "../../styles/Global.scss"; import "../../styles/Variaveis.scss"; @@ -18,20 +19,81 @@ const MenuFooter = () => {