🩹(frontend) add missing key

Fix missing warning, key props was missing on the item of the
for loop.
This commit is contained in:
lebaudantoine
2024-11-18 01:11:32 +01:00
committed by aleb_the_flash
parent 6e49ab3230
commit e78b8c69fe

View File

@@ -198,7 +198,7 @@ export const IntroSlider = () => {
</ButtonContainer>
<SlideContainer>
{SLIDES.map((slide, index) => (
<Slide visible={index == slideIndex}>
<Slide visible={index == slideIndex} key={index}>
<Image src={slide.img} alt={t(`${slide.key}.imgAlt`)} />
<TextAnimation visible={index == slideIndex}>
<Heading>{t(`${slide.key}.title`)}</Heading>