From 1e89e64ec0bccbe89b9cede0b2054547d40589fa Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 22 May 2023 15:27:01 +0700
Subject: Refactor hero banner and popular product section

---
 src/components/ui/HeroBanner.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/ui/HeroBanner.jsx')

diff --git a/src/components/ui/HeroBanner.jsx b/src/components/ui/HeroBanner.jsx
index 1b5bf165..96bd8917 100644
--- a/src/components/ui/HeroBanner.jsx
+++ b/src/components/ui/HeroBanner.jsx
@@ -9,7 +9,7 @@ import { useMemo } from 'react'
 import Link from '@/core/components/elements/Link/Link'
 import Image from '@/core/components/elements/Image/Image'
 import { useQuery } from 'react-query'
-import { BannerApi } from '@/api/BannerApi'
+import { bannerApi } from '@/api/bannerApi'
 import { HeroBannerSkeleton } from '../skeleton/BannerSkeleton'
 
 const swiperBanner = {
@@ -24,7 +24,7 @@ const swiperBanner = {
 }
 
 const HeroBanner = () => {
-  const heroBanner = useQuery('heroBanner', BannerApi({ type: 'index-a-1' }))
+  const heroBanner = useQuery('heroBanner', bannerApi({ type: 'index-a-1' }))
 
   const swiperBannerMobile = {
     ...swiperBanner,
-- 
cgit v1.2.3

