♻️ refactor: change swiper key from banner id to index

This commit is contained in:
2026-03-26 14:02:46 +07:00
parent 72f13c7c2e
commit 4e5d509e99

View File

@ -34,8 +34,8 @@ const HeroSwiper = (props: HeroSwiperProps) => {
autoplay={{ delay: 5000, disableOnInteraction: false }}
modules={[Autoplay, Pagination, Navigation]}
>
{props.data.map((slide) => (
<SwiperSlide key={slide.id} className="relative overflow-hidden">
{props.data.map((slide, index) => (
<SwiperSlide key={index} className="relative overflow-hidden">
<img
src={slide.imageUrl}
alt={slide.title}