[react] fix: the inspect view popup when clicking on a path or point, fix missing translations in the xray path and point components (#256)
This fixes some react wiring in the inspect view. The drillProps argument contains the info function which displays the popup. Also `strings` should be passed for translation, instead of the t function. Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/256 Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org> Co-authored-by: Jonathan Haas <haasjona@gmail.com> Co-committed-by: Jonathan Haas <haasjona@gmail.com>
This commit is contained in:
parent
bc1d873b19
commit
647205661b
5 changed files with 25 additions and 14 deletions
|
@ -14,7 +14,7 @@ export const PointXray = ({
|
|||
point,
|
||||
settings,
|
||||
components,
|
||||
t,
|
||||
strings,
|
||||
drillProps = {},
|
||||
}) => {
|
||||
// Don't include parts outside the part bounding box
|
||||
|
@ -32,7 +32,9 @@ export const PointXray = ({
|
|||
|
||||
return (
|
||||
<>
|
||||
<Point {...{ stackName, pointName, part, point, settings, components, t, drillProps }} />
|
||||
<Point
|
||||
{...{ stackName, pointName, part, point, settings, components, strings, drillProps }}
|
||||
/>
|
||||
<circle
|
||||
cx={point.x}
|
||||
cy={point.y}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue