1
0
Fork 0

chore: linter issues

This commit is contained in:
joostdecock 2023-02-05 19:58:25 +01:00
parent c894deb912
commit 86aa0f20da
34 changed files with 83 additions and 102 deletions

View file

@ -10,7 +10,7 @@ export const Tr = ({ children }) => <tr className="border border-base-300">{chil
export const KeyTd = ({ children }) => <td className="p-3 text-right">{children}:</td>
export const ValTd = ({ children }) => <td className="p-3">{children}</td>
export const TextAlongPath = ({ id, size, fill = 'var(--pattern-note)', txt }) => (
export const TextAlongPath = ({ id, size, txt }) => (
<text>
<textPath xlinkHref={`#${id}`} startOffset="50%">
<tspan
@ -610,9 +610,23 @@ const XrayPath = (props) => {
{ops.length > 0
? ops.map((op, i) =>
op.ops[1].type === 'curve' ? (
<XrayCurve {...props} path={op} ops={ops} i={i} pathName={`${props.pathName}_test`} />
<XrayCurve
{...props}
path={op}
ops={ops}
i={i}
pathName={`${props.pathName}_test`}
key={i}
/>
) : (
<XrayLine {...props} path={op} ops={ops} i={i} pathName={`${props.pathName}_test`} />
<XrayLine
{...props}
path={op}
ops={ops}
i={i}
pathName={`${props.pathName}_test`}
key={i}
/>
)
)
: null}