summaryrefslogtreecommitdiff
path: root/src/lib/home
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-04-11 11:06:38 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-04-11 11:06:38 +0700
commit3df233e0c23e7d4503931ab6ec8ffc41642ac104 (patch)
treeccc032defe422f5fafc4a08af672833b2fe41835 /src/lib/home
parent006c77a85786c24199db157d1d70f48b47311d35 (diff)
parentf0a720441def88187b3913268238c379362fb9d3 (diff)
Merge branch 'master' into development_tri/feedback_UAT
Diffstat (limited to 'src/lib/home')
-rw-r--r--src/lib/home/components/PopularProduct.jsx15
-rw-r--r--src/lib/home/components/PreferredBrand.jsx11
2 files changed, 5 insertions, 21 deletions
diff --git a/src/lib/home/components/PopularProduct.jsx b/src/lib/home/components/PopularProduct.jsx
index 78dc5d49..3ce7527e 100644
--- a/src/lib/home/components/PopularProduct.jsx
+++ b/src/lib/home/components/PopularProduct.jsx
@@ -15,10 +15,7 @@ const PopularProduct = () => {
<div className='font-medium mb-4'>Produk Banyak Dilihat</div>
{popularProducts.isLoading && <PopularProductSkeleton />}
{!popularProducts.isLoading && (
- <ProductSlider
- products={popularProducts.data}
- simpleTitle
- />
+ <ProductSlider products={popularProducts.data} simpleTitle />
)}
</div>
</MobileView>
@@ -31,14 +28,8 @@ const PopularProduct = () => {
<div className='h-full divide-y divide-gray_r-6'>
{popularProducts.data &&
popularProducts.data.products.map((product) => (
- <div
- className='py-2'
- key={product.id}
- >
- <ProductCard
- product={product}
- variant='horizontal'
- />
+ <div className='py-2' key={product.id}>
+ <ProductCard product={product} variant='horizontal' />
</div>
))}
</div>
diff --git a/src/lib/home/components/PreferredBrand.jsx b/src/lib/home/components/PreferredBrand.jsx
index 7edd0730..f97943cb 100644
--- a/src/lib/home/components/PreferredBrand.jsx
+++ b/src/lib/home/components/PreferredBrand.jsx
@@ -14,21 +14,14 @@ const PreferredBrand = () => {
<div className='flex justify-between items-center mb-4'>
<div className='font-medium sm:text-h-lg'>Brand Pilihan</div>
{isDesktop && (
- <Link
- href='/'
- className='btn-yellow !text-gray_r-12'
- >
+ <Link href='/' className='btn-yellow !text-gray_r-12'>
Lihat Semua
</Link>
)}
</div>
{preferredBrands.isLoading && <PreferredBrandSkeleton />}
{!preferredBrands.isLoading && (
- <Swiper
- slidesPerView={isMobile ? 3.5 : 7.5}
- spaceBetween={isMobile ? 12 : 24}
- freeMode
- >
+ <Swiper slidesPerView={isMobile ? 3.5 : 7.5} spaceBetween={isMobile ? 12 : 24} freeMode>
{preferredBrands.data?.manufactures.map((brand) => (
<SwiperSlide key={brand.id}>
<BrandCard brand={brand} />