From 065a0e341cc42443fe5e2380e078983b3c66f111 Mon Sep 17 00:00:00 2001
From: "HATEC\\SPVDEV001" <tri.susilo@altama.co.id>
Date: Mon, 25 Sep 2023 16:48:25 +0700
Subject: migrasi get brand di homepage dan page all brand ke solr

---
 src/lib/home/components/PreferredBrand.jsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'src/lib/home/components/PreferredBrand.jsx')

diff --git a/src/lib/home/components/PreferredBrand.jsx b/src/lib/home/components/PreferredBrand.jsx
index 55abe0b7..0b80bcf1 100644
--- a/src/lib/home/components/PreferredBrand.jsx
+++ b/src/lib/home/components/PreferredBrand.jsx
@@ -6,7 +6,10 @@ import useDevice from '@/core/hooks/useDevice'
 import Link from '@/core/components/elements/Link/Link'
 
 const PreferredBrand = () => {
-  const { preferredBrands } = usePreferredBrand()
+  let query = 'level_s'
+  let params = 'prioritas'
+  const { preferredBrands } = usePreferredBrand(query, params)
+  console.log('ini brands level', preferredBrands?.data?.data)
   const { isMobile, isDesktop } = useDevice()
 
   return (
@@ -22,7 +25,7 @@ const PreferredBrand = () => {
       {preferredBrands.isLoading && <PreferredBrandSkeleton />}
       {!preferredBrands.isLoading && (
         <Swiper slidesPerView={isMobile ? 3.5 : 7.5} spaceBetween={isMobile ? 12 : 24} freeMode>
-          {preferredBrands.data?.manufactures.map((brand) => (
+          {preferredBrands.data?.data.map((brand) => (
             <SwiperSlide key={brand.id}>
               <BrandCard brand={brand} />
             </SwiperSlide>
-- 
cgit v1.2.3

