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/brand/components/BrandCard.jsx | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'src/lib/brand/components/BrandCard.jsx')

diff --git a/src/lib/brand/components/BrandCard.jsx b/src/lib/brand/components/BrandCard.jsx
index f8c01e6d..bb1a17f7 100644
--- a/src/lib/brand/components/BrandCard.jsx
+++ b/src/lib/brand/components/BrandCard.jsx
@@ -8,7 +8,9 @@ const BrandCard = ({ brand }) => {
   return (
     <Link
       href={createSlug('/shop/brands/', brand.name, brand.id)}
-      className={`py-1 px-2 rounded border border-gray_r-6 flex justify-center items-center ${isMobile ? 'h-16' : 'h-24'}`}
+      className={`py-1 px-2 rounded border border-gray_r-6 flex justify-center items-center ${
+        isMobile ? 'h-16' : 'h-24'
+      }`}
     >
       {brand.logo && (
         <Image
@@ -18,10 +20,7 @@ const BrandCard = ({ brand }) => {
         />
       )}
       {!brand.logo && (
-        <span
-          className='text-center'
-          style={{ fontSize: `${16 - brand.name.length * 0.5}px` }}
-        >
+        <span className='text-center' style={{ fontSize: `${16 - brand.name.length * 0.5}px` }}>
           {brand.name}
         </span>
       )}
-- 
cgit v1.2.3

