diff --git a/src/components/FAQ.jsx b/src/components/FAQ.jsx index 3b77a7c4..475285a2 100644 --- a/src/components/FAQ.jsx +++ b/src/components/FAQ.jsx @@ -2,9 +2,7 @@ import { FaChevronDown, FaChevronUp } from "react-icons/fa"; import { useState } from "react"; -import { questions } from "../pages/landingPage/data"; - -function FAQ() { +function FAQ({ questions }) { const [activeQuestion, setActiveQuestion] = useState(null); const toggleQuestion = (index) => { @@ -16,14 +14,12 @@ function FAQ() { {questions.map((question, index) => (

))} diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 169a1b68..d0d5c30d 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -5,6 +5,7 @@ import { LazyLoadImage } from "react-lazy-load-image-component"; import { Link, useLocation } from "react-router-dom"; import logo from "../assets/images/sytLogo.png"; +import CartIcon from "./shop/CartIcon"; const navLinks = [ { @@ -37,11 +38,11 @@ const navLinks = [ link: "Resources", route: "/resources", }, - // { - // id: 7, - // link: "Shop", - // route: "/shop", - // }, + { + id: 7, + link: "Shop", + route: "/shop", + }, // { // id: 8, // link: "Donate", @@ -63,30 +64,38 @@ function Header() { {/* mobile menu */} - {showNavlinks ? ( - - ) : ( - - )} +
+
+ +
+ {showNavlinks ? ( + + ) : ( + + )} +
{/* mobile navlinks */}