summaryrefslogtreecommitdiff
path: root/src/lib/product/components/ProductDesktop.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/product/components/ProductDesktop.jsx')
-rw-r--r--src/lib/product/components/ProductDesktop.jsx16
1 files changed, 8 insertions, 8 deletions
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>