From 3c020236bd95ba485cc7cfb8b11e5972c49bb7b5 Mon Sep 17 00:00:00 2001
From: Rafi Zadanly <zadanlyr@gmail.com>
Date: Mon, 22 May 2023 16:54:34 +0700
Subject: delete animation on load

---
 src/components/ui/HeroBannerSecondary.jsx | 21 +++++++++------------
 1 file changed, 9 insertions(+), 12 deletions(-)

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

diff --git a/src/components/ui/HeroBannerSecondary.jsx b/src/components/ui/HeroBannerSecondary.jsx
index 50db69f8..b1023990 100644
--- a/src/components/ui/HeroBannerSecondary.jsx
+++ b/src/components/ui/HeroBannerSecondary.jsx
@@ -5,7 +5,6 @@ import { useMemo } from 'react'
 import { useQuery } from 'react-query'
 import { HeroBannerSkeleton } from '../skeleton/BannerSkeleton'
 import { bannerApi } from '@/api/bannerApi'
-import AnimateOnLoad from './AnimateOnLoad'
 
 const HeroBannerSecondary = () => {
   const heroBannerSecondary = useQuery('heroBannerSecondary', bannerApi({ type: 'index-a-2' }))
@@ -20,17 +19,15 @@ const HeroBannerSecondary = () => {
 
   return (
     heroBannerSecondary.data && (
-      <AnimateOnLoad className='h-full'>
-        <Link href={heroBannerSecondary.data[randomIndex].url} className='h-full'>
-          <Image
-            src={heroBannerSecondary.data[randomIndex].image}
-            width={512}
-            height={1024}
-            alt={heroBannerSecondary.data[randomIndex].name}
-            className='object-cover object-center h-full'
-          />
-        </Link>
-      </AnimateOnLoad>
+      <Link href={heroBannerSecondary.data[randomIndex].url} className='h-full'>
+        <Image
+          src={heroBannerSecondary.data[randomIndex].image}
+          width={512}
+          height={1024}
+          alt={heroBannerSecondary.data[randomIndex].name}
+          className='object-cover object-center h-full'
+        />
+      </Link>
     )
   )
 }
-- 
cgit v1.2.3

