From ca146ee19fde17f92bdcafdbf79782bc1558001b Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 6 Nov 2020 00:27:00 +0900 Subject: Fix some react warnings --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index f5637e4..5553a35 100644 --- a/src/App.js +++ b/src/App.js @@ -197,8 +197,8 @@ function StoreCarousel(props) { totalSlides={props.data.length + skeletons.length}>
- {props.data.map((item, index) => )} - {skeletons.length ? skeletons.map((item, index) => ) : null} + {props.data.map((item, index) => )} + {skeletons.length ? skeletons.map((item, index) => ) : null} @@ -310,14 +310,14 @@ function ItemSearch(props) { {categories.map(cat => } - label={t(cat)}/>)} + key={cat} label={t(cat)}/>)} {t('Audience')} {audience.map(cat => } - label={t(cat.key)}/>)} + key={cat.key} label={t(cat.key)}/>)} -- cgit v1.2.3