diff --git a/src/components/Header/Header.tsx b/src/components/Header/Header.tsx index 1114eff..5824428 100644 --- a/src/components/Header/Header.tsx +++ b/src/components/Header/Header.tsx @@ -1,11 +1,11 @@ import { useState } from "react"; -import SearchBar from "./SearchBar"; +import { SearchBar } from "./SearchBar"; import Logo from "./assets/img/logoM3.png"; -import Cart from "./assets/img/Cart.png"; -import iconMenu from "./assets/img/iconMenu.png"; -import Link from "../link/Link"; -import HeaderLinks from "./HeaderLinks"; -import MenuMobile from "./Menu-Mobile/MenuMobile"; +import Cart from "./assets/svg/Cart.svg"; +import iconMenu from "./assets/svg/iconMenu.svg"; +import { Link } from "../link/Link"; +import { HeaderLinks } from "./HeaderLinks"; +import { MenuMobile } from "./Menu-Mobile/MenuMobile"; import styles from "./header.module.scss"; diff --git a/src/components/Header/HeaderLinks.tsx b/src/components/Header/HeaderLinks.tsx index 95a9bf7..bfe2059 100644 --- a/src/components/Header/HeaderLinks.tsx +++ b/src/components/Header/HeaderLinks.tsx @@ -1,4 +1,4 @@ -import Link from "../link/Link"; +import { Link } from "../link/Link"; import styles from "./header.module.scss"; const HeaderLinks = () => { @@ -11,4 +11,4 @@ const HeaderLinks = () => { ); }; -export default HeaderLinks; +export { HeaderLinks }; diff --git a/src/components/Header/Menu-Mobile/MenuMobile.tsx b/src/components/Header/Menu-Mobile/MenuMobile.tsx index 1d664e0..d274265 100644 --- a/src/components/Header/Menu-Mobile/MenuMobile.tsx +++ b/src/components/Header/Menu-Mobile/MenuMobile.tsx @@ -1,6 +1,6 @@ -import iconExit from "../assets/img/iconExit.png"; -import Link from "../../link/Link"; -import HeaderLinks from "../HeaderLinks"; +import iconExit from "../assets/svg/iconExit.svg"; +import { Link } from "../../link/Link"; +import { HeaderLinks } from "../HeaderLinks"; import styles from "../header.module.scss"; @@ -11,13 +11,15 @@ interface MenuMobileProps { } const MenuMobile = (props: MenuMobileProps) => { + const { onClick, active, className } = props; + return ( <>
-