fix(website): duplicate key for children in stats.tsx

This commit is contained in:
Zakher Masri
2025-04-27 10:24:05 +03:00
parent a67ea284a7
commit 53307497a8

View File

@@ -158,10 +158,10 @@ export function GridPattern({ width, height, x, y, squares, ...props }: any) {
/>
{squares && (
<svg x={x} y={y} className="overflow-visible">
{squares.map(([x, y]: any) => (
{squares.map(([x, y]: any, i: number) => (
<rect
strokeWidth="0"
key={`${x}-${y}`}
key={`${x}-${y}-${i}`}
width={width + 1}
height={height + 1}
x={x * width}