♻️ refactor: change swiper key from banner id to index
This commit is contained in:
@ -34,8 +34,8 @@ const HeroSwiper = (props: HeroSwiperProps) => {
|
|||||||
autoplay={{ delay: 5000, disableOnInteraction: false }}
|
autoplay={{ delay: 5000, disableOnInteraction: false }}
|
||||||
modules={[Autoplay, Pagination, Navigation]}
|
modules={[Autoplay, Pagination, Navigation]}
|
||||||
>
|
>
|
||||||
{props.data.map((slide) => (
|
{props.data.map((slide, index) => (
|
||||||
<SwiperSlide key={slide.id} className="relative overflow-hidden">
|
<SwiperSlide key={index} className="relative overflow-hidden">
|
||||||
<img
|
<img
|
||||||
src={slide.imageUrl}
|
src={slide.imageUrl}
|
||||||
alt={slide.title}
|
alt={slide.title}
|
||||||
|
|||||||
Reference in New Issue
Block a user