Skip to content

Commit

Permalink
updated product section
Browse files Browse the repository at this point in the history
  • Loading branch information
bugswritter committed Jul 16, 2024
1 parent cb80712 commit 3ac97f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/pages/shop/sections/AllProducts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { useEffect, useState } from "react";
import { useSearchParams } from "react-router-dom";
import { useSwagList } from "../../../hooks/Queries/shop/useSwagList";
import SectionWrapper from "@/components/shop/SectionWrapper";
import CartIcon from "@/components/shop/CartIcon";
import FilterSection from "./FilterSection";
import ProductCard from "@/components/shop/ProductCard";
import ItemHeader from "./ItemHeader";

function AllProducts() {
const [products, setProducts] = useState([]);
Expand Down Expand Up @@ -40,7 +40,8 @@ function AllProducts() {
return (
<>
<div className="flex flex-col gap-1">
<CartIcon />
<ItemHeader show={() => setOpen((prev) => !prev)} />

<FilterSection />
</div>
<SectionWrapper>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/shop/sections/FeaturedProducts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ const FeaturedProducts = () => {
const { data: swagList, isSuccess } = useSwagList();

return (
<LandingWrapper title="Featured Products">
<LandingWrapper title="New Arrivals">
<SectionWrapper>
<section className="w-full flex flex-col gap-4 px-3 ">
<h3 className="text-green-header text-center font-semibold text-xl md:text-3xl mb-4">
Our most popular products
New Products in the Inventory
</h3>
</section>
<div className="mt-8 py-4 flex gap-4 overflow-x-scroll h-full w-full hr-scrollbar">
Expand Down

0 comments on commit 3ac97f0

Please sign in to comment.