Skip to content

Commit

Permalink
Merge pull request #145 from Lemoncode/reopened-issue/#36-add-missing…
Browse files Browse the repository at this point in the history
…-props-in-renderTabler

reopened-issue/#36-add missing props in renderTablet
  • Loading branch information
brauliodiez authored Aug 8, 2024
2 parents 2ef468b + ce74b38 commit 1ff4d35
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export const renderTablet = (
shape: ShapeModel,
shapeRenderedProps: ShapeRendererProps
) => {
const { handleSelected, shapeRefs } = shapeRenderedProps;
const { handleSelected, shapeRefs, handleDragEnd, handleTransform } =
shapeRenderedProps;

return (
<TabletShape
Expand All @@ -19,6 +20,9 @@ export const renderTablet = (
height={shape.height}
onSelected={handleSelected}
ref={shapeRefs.current[shape.id]}
onDragEnd={handleDragEnd(shape.id)}
onTransform={handleTransform}
onTransformEnd={handleTransform}
/>
);
};

0 comments on commit 1ff4d35

Please sign in to comment.