1
0
Fork 0

lint fixes for react-components

This commit is contained in:
Enoch Riese 2023-06-07 10:06:30 -05:00
parent f27aacc152
commit 3503d97fae
18 changed files with 38 additions and 9 deletions

View file

@ -1,3 +1,4 @@
// eslint-disable-next-line no-unused-vars
import React from 'react'
const style = ` style="fill: none; stroke: currentColor;" `
@ -17,6 +18,9 @@ export const Defs = (props) => {
if (typeof part.points.gridAnchor !== 'undefined') anchor = part.points.gridAnchor
else if (typeof part.points.anchor !== 'undefined') anchor = part.points.anchor
if (isNaN(anchor.x)) anchor.x = 0
if (isNaN(anchor.y)) anchor.y = 0
defs += `<pattern id="grid-${stack}" key="grid-${stack}" xlink:href="#grid" x="${anchor.x}" y="${anchor.y}" />`
}
}