Skip to content

Commit

Permalink
add missing props in renderTablet
Browse files Browse the repository at this point in the history
  • Loading branch information
Bomasen committed Aug 8, 2024
1 parent d635b4c commit ce74b38
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 ce74b38

Please sign in to comment.