summaryrefslogtreecommitdiff
path: root/src/components/ui/HeroBannerSecondary.jsx
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2023-05-22 16:54:34 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2023-05-22 16:54:34 +0700
commit3c020236bd95ba485cc7cfb8b11e5972c49bb7b5 (patch)
tree970c00b6aabcbc000e9a54be8e2d8ffdecefbd36 /src/components/ui/HeroBannerSecondary.jsx
parent8080c415e466ce29d0f7c29284c3a8537c6b237d (diff)
delete animation on load
Diffstat (limited to 'src/components/ui/HeroBannerSecondary.jsx')
-rw-r--r--src/components/ui/HeroBannerSecondary.jsx21
1 files changed, 9 insertions, 12 deletions
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>
)
)
}