From 92c2a229d9c9b510d71b928978872a8b107e9d5a Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Tue, 11 Apr 2023 09:47:25 +0700
Subject: Documentation and refactor code

---
 src/lib/home/components/PopularProduct.jsx | 15 +++------------
 1 file changed, 3 insertions(+), 12 deletions(-)

(limited to 'src/lib/home/components/PopularProduct.jsx')

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>
-- 
cgit v1.2.3

