summaryrefslogtreecommitdiff
path: root/src/lib/brand/components
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-20 14:02:51 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2023-10-20 14:02:51 +0700
commit85e0a7e47db518fb5fb2531b2ea7c6d50408875f (patch)
tree23bf01bc04e59bcada89e8fc4a908477ac09049c /src/lib/brand/components
parent40c30c5ea9a61ce39e6faf72504a141afa2d1505 (diff)
logo brand di page brand
Diffstat (limited to 'src/lib/brand/components')
-rw-r--r--src/lib/brand/components/Brand.jsx24
1 files changed, 4 insertions, 20 deletions
diff --git a/src/lib/brand/components/Brand.jsx b/src/lib/brand/components/Brand.jsx
index 4afbcb3e..78a9d5bd 100644
--- a/src/lib/brand/components/Brand.jsx
+++ b/src/lib/brand/components/Brand.jsx
@@ -20,8 +20,8 @@ const swiperBanner = {
modules: [Pagination, Autoplay]
}
-const Brand = ({ id }) => {
- const { brand } = useBrand({ id })
+const Brand = ({ brand }) => {
+ // const { brand } = useBrand({ id })
return (
<>
@@ -91,7 +91,7 @@ const Brand = ({ id }) => {
</MobileView>
<DesktopView>
- <div className='container mx-auto'>
+ <div className='container mx-auto mb-10'>
<Skeleton
isLoaded={!brand.isLoading}
aspectRatio='4/1'
@@ -131,23 +131,7 @@ const Brand = ({ id }) => {
))}
</Swiper>
- <div className='p-4'>
- <div className='text-caption-1 text-gray_r-11 mb-2'>Produk dari brand:</div>
- {brand?.data?.logo && (
- <Image
- src={brand?.data?.logo}
- alt={brand?.data?.name}
- className='w-32 p-2 border borde-gray_r-6 rounded'
- width={1024}
- height={512}
- />
- )}
- {!brand?.data?.logo && (
- <div className='bg-danger-500 text-white text-center text-body-1 py-2 px-4 rounded w-fit'>
- {brand?.data?.name}
- </div>
- )}
- </div>
+
</>
)}
</Skeleton>