diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-20 14:33:21 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-03-20 14:33:21 +0700 |
| commit | 833488811b4164d7fbdce9bd70e171f06d62bf8d (patch) | |
| tree | c781a3ced1f27b8f1c81ed5401fd758d79c1de1c /src/lib/product | |
| parent | 87e7292941a251f09b5af39d9020896a3bfb0f97 (diff) | |
login and register
Diffstat (limited to 'src/lib/product')
| -rw-r--r-- | src/lib/product/components/Product.jsx | 2 | ||||
| -rw-r--r-- | src/lib/product/components/ProductDesktop.jsx | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/product/components/Product.jsx b/src/lib/product/components/Product.jsx index 9b41f5c3..9521cbe4 100644 --- a/src/lib/product/components/Product.jsx +++ b/src/lib/product/components/Product.jsx @@ -21,7 +21,7 @@ const Product = ({ product }) => { if (wishlist?.data?.productTotal > 0) { toast.success('Berhasil menghapus dari wishlist') } else { - toast.error('Terjadi kesalahan internal, gagal menambahkan ke wishlist') + toast.success('Berhasil menambahkan ke wishlist') } wishlist.refetch() } diff --git a/src/lib/product/components/ProductDesktop.jsx b/src/lib/product/components/ProductDesktop.jsx index f37d900c..55d44212 100644 --- a/src/lib/product/components/ProductDesktop.jsx +++ b/src/lib/product/components/ProductDesktop.jsx @@ -225,9 +225,9 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { </TabButton> ))} </div> - <div className='flex rounded'> - <TabContent active={informationTab == 'description'}> - <div className='w-3/4 leading-7 product__description'> + <div className='flex'> + <div className='w-3/4 leading-7 product__description'> + <TabContent active={informationTab == 'description'}> <span dangerouslySetInnerHTML={{ __html: @@ -236,10 +236,10 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { : 'Belum ada deskripsi produk.' }} /> - </div> - </TabContent> - - <TabContent active={informationTab == 'information'}>Belum ada informasi.</TabContent> + </TabContent> + + <TabContent active={informationTab == 'information'}>Belum ada informasi.</TabContent> + </div> </div> </div> @@ -270,7 +270,7 @@ const TabButton = ({ children, active, ...props }) => { ) } -const TabContent = ({ children, active, className, ...props }) => ( +const TabContent = ({ children, active, className = '', ...props }) => ( <div {...props} className={`${active ? 'block' : 'hidden'} ${className}`}> {children} </div> |
