diff --git a/src/App.tsx b/src/App.tsx index bad76d1..2e95fe7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ // Modules import { Routes, Route } from "react-router-dom"; +import { useState } from "react"; // Styles import "./styles/style.scss"; @@ -19,9 +20,15 @@ import Contacts from "./pages/Contact"; import Calendar from "./components/global/Calendar"; const App = () => { + // Types + type drop = [boolean, React.Dispatch>]; + + // State + const [dropdown, setDropdown]: drop = useState(false); + return (
-
); }; diff --git a/src/components/global/Footer.tsx b/src/components/global/Footer.tsx index 7f76658..cf7f101 100644 --- a/src/components/global/Footer.tsx +++ b/src/components/global/Footer.tsx @@ -10,15 +10,23 @@ import linkedin from "../../icons/linkedin.svg"; import instagram from "../../icons/instagram.svg"; import facebook from "../../icons/facebook.svg"; -const Footer = () => { +// Types +import { dropdown } from "../../types/dropdown"; + +const Footer = ({ dropdown, setDropdown }: dropdown) => { return (