Skip to content

🎥 Make videos programmatically with React

fix lint

Jonny Burger3ace13e0f556
diff --git a/packages/shapes/src/components/render-svg.tsx b/packages/shapes/src/components/render-svg.tsx
index c1666c6fa1..79c36ebe6f 100644
--- a/packages/shapes/src/components/render-svg.tsx
+++ b/packages/shapes/src/components/render-svg.tsx
@@ -49,6 +49,7 @@ export const RenderSvg = ({
style={actualStyle}
>
<path
+ // eslint-disable-next-line react/no-unknown-property
transform-origin={transformOrigin}
d={path}
style={actualPathStyle}
@@ -81,7 +82,8 @@ export const RenderSvg = ({
const prevX = prevInstruction.x;
const prevY = prevInstruction.y;
return (
- <>
+ // eslint-disable-next-line react/no-array-index-key
+ <React.Fragment key={index}>
<path
d={`M ${prevX} ${prevY} ${i.cp1x} ${i.cp1y}`}
strokeWidth={2}
@@ -108,7 +110,7 @@ export const RenderSvg = ({
fill="white"
stroke="black"
/>
- </>
+ </React.Fragment>
);
}