fix: add key to add cards container

This commit is contained in:
RadoslavDimchev 2023-10-20 09:36:53 +03:00
parent 4ea5133e57
commit 57ac9c6551

View File

@ -10,8 +10,8 @@ const AddCardsContainer = () => {
return (
<DashboardCardWrapper padding="0" minWidth="150px">
<YStack height={'100%'}>
{Array.from({ length: cards }).map(() => (
<AddCard style={{ padding: '56px', height: getHeightPercentages(cards) }} />
{Array.from({ length: cards }).map((_, index) => (
<AddCard key={index} style={{ padding: '56px', height: getHeightPercentages(cards) }} />
))}
</YStack>
</DashboardCardWrapper>