chore: Linter warnings
This commit is contained in:
parent
347d666ce7
commit
a68f81ec73
22 changed files with 241 additions and 27 deletions
|
@ -1,7 +1,5 @@
|
|||
import SvgWrapper from './svg-wrapper'
|
||||
import Error from './error.js'
|
||||
import { capitalize } from 'shared/utils.js'
|
||||
import { TransformWrapper, TransformComponent } from "react-zoom-pan-pinch"
|
||||
|
||||
const LabDraft = props => {
|
||||
const { app, draft, pattern, gist, updateGist, unsetGist } = props
|
||||
|
|
|
@ -6,7 +6,9 @@ import { getProps } from '../utils'
|
|||
const XrayPart = props => {
|
||||
// Don't bother if this is the only part on display
|
||||
if (props.gist.only && props.gist.only.length === 1) return null
|
||||
const i = Object.keys(props.gist.xray?.reveal).indexOf(props.partName)%10
|
||||
const i = props.gist.xray?.reveal
|
||||
? Object.keys(props.gist.xray?.reveal).indexOf(props.partName)%10
|
||||
: 0
|
||||
const { topLeft, bottomRight } = props.part
|
||||
|
||||
return (
|
||||
|
|
|
@ -117,7 +117,7 @@ const PassiveXrayPoint = props => (
|
|||
cy={props.point.y}
|
||||
r={7.5 * props.gist.scale}
|
||||
className="opacity-0 stroke-lining fill-lining hover:opacity-25 hover:cursor-pointer"
|
||||
onClick={props.gist?.xray?.parts?.[props.partName]?.points?.[props.pointName]
|
||||
onClick={props.gist.xray?.parts?.[props.partName]?.points?.[props.pointName]
|
||||
? () => props.unsetGist(
|
||||
['xray', 'parts', props.partName, 'points', props.pointName]
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue