chore: add keys to list elements in home page

This commit is contained in:
daniyal 2024-09-10 22:38:14 +05:00
parent 96bf84a0c4
commit 990460d7cf

View File

@ -48,7 +48,10 @@ export const HomePage = () => {
loop loop
> >
{LANDING_PAGE_DATA.featuredSlider.map((naddr) => ( {LANDING_PAGE_DATA.featuredSlider.map((naddr) => (
<SwiperSlide className='swiper-slide IBMSMSliderContainerWrapperSlider'> <SwiperSlide
key={naddr}
className='swiper-slide IBMSMSliderContainerWrapperSlider'
>
<SlideContent naddr={naddr} /> <SlideContent naddr={naddr} />
</SwiperSlide> </SwiperSlide>
))} ))}
@ -65,7 +68,11 @@ export const HomePage = () => {
</div> </div>
<div className='IBMSMList IBMSMListFeaturedAlt'> <div className='IBMSMList IBMSMListFeaturedAlt'>
{LANDING_PAGE_DATA.featuredGames.map((game) => ( {LANDING_PAGE_DATA.featuredGames.map((game) => (
<GameCard title={game.title} imageUrl={game.imageUrl} /> <GameCard
key={game.title}
title={game.title}
imageUrl={game.imageUrl}
/>
))} ))}
</div> </div>
<div className='IBMSMAction'> <div className='IBMSMAction'>