summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-09-09 01:58:19 +0000
committertrisusilo <tri.susilo@altama.co.id>2024-09-09 01:58:19 +0000
commit495b327ba0a45b17f4f0156f846ebe8bddbcd075 (patch)
tree6578a76750026e792f39c0eb282ab0ac1b70a898 /src/lib
parent3b466589463522ded2f172474a0de533ef02d92c (diff)
parent52ec2b8f09b43b69b5191e088ddc897cc08756e0 (diff)
Merged in update/mobile-view (pull request #294)
Update/mobile view Approved-by: trisusilo
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/product/components/CategorySection.jsx7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/product/components/CategorySection.jsx b/src/lib/product/components/CategorySection.jsx
index e8ebb095..a287fa78 100644
--- a/src/lib/product/components/CategorySection.jsx
+++ b/src/lib/product/components/CategorySection.jsx
@@ -63,7 +63,7 @@ const CategorySection = ({ categories }) => {
{isMobile && (
<div className="py-4">
<Swiper slidesPerView={2.3} spaceBetween={10}>
- {displayedCategories.map((category) => (
+ {categories.map((category) => (
<SwiperSlide key={category?.id}>
<Link href={createSlug('/shop/category/', category?.name, category?.id)} passHref>
<div className="group transition-colors duration-300">
@@ -74,6 +74,7 @@ const CategorySection = ({ categories }) => {
width={56}
height={48}
alt={category?.name}
+ className="p-3"
/>
<h2 className="text-gray-700 group-hover:text-[#E20613] line-clamp-2 content-center h-fit w-60 px-1 font-semibold text-sm text-start">
{category?.name}
@@ -85,7 +86,7 @@ const CategorySection = ({ categories }) => {
</SwiperSlide>
))}
</Swiper>
- {categories.length > 10 && (
+ {/* {categories.length > 10 && (
<div className="w-full flex justify-end mt-4">
<button
onClick={handleToggleCategories}
@@ -94,7 +95,7 @@ const CategorySection = ({ categories }) => {
{isOpenCategory ? 'Sembunyikan Semua' : 'Lihat Semua'}
</button>
</div>
- )}
+ )} */}
</div>
)}
</section>