summaryrefslogtreecommitdiff
path: root/src/lib/home/components/CategoryPilihan.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-07-25 08:27:05 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-07-25 08:27:05 +0700
commit2e71abba4ca5b83cc1fec229d4d85961c4b56d71 (patch)
tree01889be4eeb5cbd438ebd3bc00e205d3a9e6513d /src/lib/home/components/CategoryPilihan.jsx
parent0768abc2828369a0c41a8042e0d005d32b5315ba (diff)
<iman> update category management
Diffstat (limited to 'src/lib/home/components/CategoryPilihan.jsx')
-rw-r--r--src/lib/home/components/CategoryPilihan.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/home/components/CategoryPilihan.jsx b/src/lib/home/components/CategoryPilihan.jsx
index 54807686..ea78b349 100644
--- a/src/lib/home/components/CategoryPilihan.jsx
+++ b/src/lib/home/components/CategoryPilihan.jsx
@@ -10,7 +10,6 @@ import { HeroBannerSkeleton } from '../../../components/skeleton/BannerSkeleton'
const CategoryPilihan = ({ id, categories }) => {
const heroBanner = useQuery('categoryPilihan', bannerApi({ type: 'banner-category-list' }));
-
return (
<section>
<div className='flex flex-row items-center mb-4'>
@@ -38,7 +37,7 @@ const CategoryPilihan = ({ id, categories }) => {
)}
</div>
<div className="group/item grid grid-cols-6 gap-y-2 w-full h-full col-span-2 ">
- {categories.map((category) => (
+ {categories?.map((category) => (
<div className="KartuInti h-48 w-60 max-w-sm lg:max-w-full flex flex-col border-[1px] border-gray-200 relative group">
<div className='KartuB absolute h-48 w-60 inset-0 flex items-center justify-center '>
<div className="group/edit flex items-center justify-end h-48 w-60 flex-col group-hover/item:visible">