mirror of
https://github.com/vercel/commerce.git
synced 2025-03-14 22:42:33 +00:00
Add keys
This commit is contained in:
parent
bfabd49ad9
commit
665af6e9ad
@ -35,8 +35,8 @@ const Grid: FC<Props> = ({
|
||||
)
|
||||
return (
|
||||
<div className={rootClassName}>
|
||||
{items.map((data: any) => (
|
||||
<Component {...data} />
|
||||
{items.map((data: any, i: any) => (
|
||||
<Component key={i} {...data} />
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
|
@ -43,8 +43,8 @@ const M: FC<Props> = ({
|
||||
<Ticker>
|
||||
{({ index }) => (
|
||||
<div className={s.container}>
|
||||
{items.map((p: any) => (
|
||||
<Component {...p} key={index} />
|
||||
{items.map((p: any, i: any) => (
|
||||
<Component key={i} {...p} />
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
Loading…
x
Reference in New Issue
Block a user