diff --git a/components/AppsComponent/BrandData/page.jsx b/components/AppsComponent/BrandData/page.jsx index 262ef6a..245c2ba 100644 --- a/components/AppsComponent/BrandData/page.jsx +++ b/components/AppsComponent/BrandData/page.jsx @@ -11,6 +11,7 @@ import logo from "../../../public/images/logo.png"; import AppContext from "@ctx/AppContext"; import CardNormal from "@comp/Cards/CardNormal/page"; import Link from "next/link"; +import ArticleContent from "@comp/ArticleContent"; const BrandData = ({ params, data, product }) => { const CTX = useContext(AppContext); @@ -64,12 +65,11 @@ const BrandData = ({ params, data, product }) => { )} -
-
-
+ {data.description ? ( + + ) : ( +

Loading...

+ )}
diff --git a/components/AppsComponent/CategoriesData/page.jsx b/components/AppsComponent/CategoriesData/page.jsx index d8f6eb1..75374ba 100644 --- a/components/AppsComponent/CategoriesData/page.jsx +++ b/components/AppsComponent/CategoriesData/page.jsx @@ -1,5 +1,6 @@ "use client"; +import ArticleContent from "@comp/ArticleContent"; import FilterCategory from "@comp/Category/FilterCategory/page"; import ListProdocts from "@comp/Category/ListProdocts/page"; import FilterCategoryMobile from "@comp/Category/Mobile/FilterCategoryMobile/page"; @@ -12,10 +13,12 @@ import { usePathname, useRouter, useSearchParams } from "next/navigation"; import { useContext, useEffect, useMemo, useState } from "react"; import InfiniteScroll from "react-infinite-scroll-component"; -export default function CategoriesData({ params, products }) { +export default function CategoriesData({ params, products, categoryData }) { const CTX = useContext(AppContext); const searchParams = useSearchParams(); + console.log("categoryData", categoryData); + useEffect(() => { if ( Number(searchParams.get("page")) === 0 || @@ -249,12 +252,11 @@ export default function CategoriesData({ params, products }) { /> )} - {/*
-
-
*/} + {categoryData?.description ? ( + + ) : ( +

+ )}