diff --git a/src/components/Header/MenuButton/MenuButton.tsx b/src/components/Header/MenuButton/MenuButton.tsx index 03df9c8..43f8310 100644 --- a/src/components/Header/MenuButton/MenuButton.tsx +++ b/src/components/Header/MenuButton/MenuButton.tsx @@ -1,15 +1,23 @@ -import React from "react"; +import React, { useContext } from "react"; import styles from "./MenuButton.module.scss"; import menuButton from "../assets/menu-icon.svg"; +import { ModalContext } from "../../../contexts/ModalContext"; + +// const openMenu = () => {}; const MenuButton = () => { + + const { isOpen, setIsOpen } = useContext(ModalContext); + return ( - + > ); }; -export { MenuButton }; \ No newline at end of file +export { MenuButton }; diff --git a/src/components/Header/Searchbox/Searchbox.module.scss b/src/components/Header/Searchbox/Searchbox.module.scss index 787dc4a..70649fa 100644 --- a/src/components/Header/Searchbox/Searchbox.module.scss +++ b/src/components/Header/Searchbox/Searchbox.module.scss @@ -42,6 +42,7 @@ right: 12.78%; //46px; top: 8px; padding: 0; + background: transparent; img { height: 18px; diff --git a/src/components/List/List.tsx b/src/components/List/List.tsx new file mode 100644 index 0000000..83ad562 --- /dev/null +++ b/src/components/List/List.tsx @@ -0,0 +1,23 @@ +import React from "react"; +import { Link } from "react-router-dom"; + +interface ListProps { + className: string; + itemsList: { value: string; name: string }[]; +} + +const List = (props: ListProps) => { + const { className, itemsList } = props; + + return ( +