diff --git a/src/pages/shop/section/productList/components/ListAllProduct.tsx b/src/pages/shop/section/productList/components/ListAllProduct.tsx index cc6ba7d..b86a8d0 100644 --- a/src/pages/shop/section/productList/components/ListAllProduct.tsx +++ b/src/pages/shop/section/productList/components/ListAllProduct.tsx @@ -71,36 +71,48 @@ const ListAllProduct = ({ activeId }: { activeId: number }) => { className="w-full h-full border-4 gap-5 border-spacing-1 shadow-lg shadow-white border-solid border-white rounded-lg p-3 grid max-sm:grid-cols-1 max-md:grid-cols-2 max-lg:grid-cols-3 lg:grid-cols-4" id="listConfig" > + {data?.data?.result?.map((item: Record) => { + const isDisabled = Number(item.max_config) == 0; + return (
- {item.title} -
- {token ? ( - - ) : ( - - )} + } + }} + > + خرید + +
); })} + );