summaryrefslogtreecommitdiff
path: root/src/components/ui/HeroBanner.jsx
diff options
context:
space:
mode:
authortrisusilo48 <tri.susilo@altama.co.id>2024-12-06 11:02:51 +0700
committertrisusilo48 <tri.susilo@altama.co.id>2024-12-06 11:02:51 +0700
commit0ef6dd27b4c516c6948e8107c9e2477fca9f069f (patch)
tree3d268ba20b467b99e0bb142f64923eb939c8c4ad /src/components/ui/HeroBanner.jsx
parent23d6791006c3179bb3cbccef13f6d6a2a4f39c93 (diff)
update performance
Diffstat (limited to 'src/components/ui/HeroBanner.jsx')
-rw-r--r--src/components/ui/HeroBanner.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/ui/HeroBanner.jsx b/src/components/ui/HeroBanner.jsx
index 6f1ef641..d5ff6247 100644
--- a/src/components/ui/HeroBanner.jsx
+++ b/src/components/ui/HeroBanner.jsx
@@ -55,16 +55,16 @@ const HeroBanner = () => {
return heroBanner.map((banner, index) => (
<SwiperSlide key={index}>
- <Link href={banner.url} className='w-full h-auto' aria-label={banner.name}>
+ <Link href={banner?.url} aria-label={banner.name}>
<Image
src={banner.image}
alt={banner.name}
width={1152}
height={768}
- loading='eager'
placeholder='blur'
blurDataURL='/images/indoteknik-placeholder.png'
sizes='(max-width: 768px) 100vw, 50vw'
+ priority={true}
/>
</Link>
</SwiperSlide>