diff --git a/components/AppsComponent/BrandData/page.jsx b/components/AppsComponent/BrandData/page.jsx index 96ca68b..e9ba150 100644 --- a/components/AppsComponent/BrandData/page.jsx +++ b/components/AppsComponent/BrandData/page.jsx @@ -10,10 +10,10 @@ import PersianNumber from "plugins/PersianNumber"; import logo from "../../../public/images/logo.png"; import AppContext from "@ctx/AppContext"; import CardNormal from "@comp/Cards/CardNormal/page"; +import Link from "next/link"; -const BrandData = ({ params, data }) => { +const BrandData = ({ params, data, product }) => { const CTX = useContext(AppContext); - const hairCosmeticData = CTX.state.hairCosmeticData; useEffect(() => { CTX.fetchHairCosmetic(); @@ -40,13 +40,35 @@ const BrandData = ({ params, data }) => {

+
+
+
+
- {hairCosmeticData?.products?.map((e) => ( + {product?.products?.map((e) => (
))}
+ + {product?.products?.length >= 19 && ( +
+ +
+

+ مشاهده بیشتر{" "} +

+
+ +
+ )}
diff --git a/components/AppsComponent/CategoriesData/page.jsx b/components/AppsComponent/CategoriesData/page.jsx index 2525827..d8f6eb1 100644 --- a/components/AppsComponent/CategoriesData/page.jsx +++ b/components/AppsComponent/CategoriesData/page.jsx @@ -249,6 +249,13 @@ export default function CategoriesData({ params, products }) { /> )} + {/*
+
+
*/} +