mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:59:45 +00:00
Добавил key к элементам массива
This commit is contained in:
1 parent
4f6ccbf4fa
commit
87596e4411
4 files changed
+27
-4
No files matched your search
@@ -8,27 +8,35 @@ import { porsche } from '../../../../assets/images/partners';
|
||||
|
||||
const mock = [
|
||||
{
|
||||
id: 1,
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
image: scb,
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
image: scb,
|
||||
},
|
||||
{
|
||||
id: 5,
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
id: 6,
|
||||
image: scb,
|
||||
},
|
||||
{
|
||||
id: 7,
|
||||
image: porsche,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
image: scb,
|
||||
},
|
||||
];
|
||||
@@ -43,7 +51,7 @@ function Partners({ partners = mock }) {
|
||||
speed={1}
|
||||
margin={32}
|
||||
>
|
||||
{ partners.map(item => <PartnersLogo partner={ item } />) }
|
||||
{ partners.map(item => <PartnersLogo key={ item.id } partner={ item } />) }
|
||||
</ScrollCarousel>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user