refactor(node-resizer): rename onBeforeResize to shouldResize, cleanup types

This commit is contained in:
moklick
2023-01-16 14:39:11 +01:00
parent e6b71d474f
commit 1ab7a0f0d9
5 changed files with 29 additions and 23 deletions
+3 -3
View File
@@ -14,8 +14,8 @@ export default function NodeResizer({
color,
minWidth = 10,
minHeight = 10,
shouldResize,
onResizeStart,
onBeforeResize,
onResize,
onResizeEnd,
}: NodeResizerProps) {
@@ -37,7 +37,7 @@ export default function NodeResizer({
minWidth={minWidth}
minHeight={minHeight}
onResizeStart={onResizeStart}
onBeforeResize={onBeforeResize}
shouldResize={shouldResize}
onResize={onResize}
onResizeEnd={onResizeEnd}
/>
@@ -53,7 +53,7 @@ export default function NodeResizer({
minWidth={minWidth}
minHeight={minHeight}
onResizeStart={onResizeStart}
onBeforeResize={onBeforeResize}
shouldResize={shouldResize}
onResize={onResize}
onResizeEnd={onResizeEnd}
/>