Skip to content

Commit eb6caef

Browse files
committed
chore: remove redundant comments in DrawerPopup.tsx
1 parent 03ee1ab commit eb6caef

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/DrawerPopup.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -312,12 +312,10 @@ const DrawerPopup: React.ForwardRefRenderFunction<
312312
}
313313
}, [isHorizontal, width, height]);
314314

315-
// Initialize and update currentSize
316315
React.useEffect(() => {
317316
updateCurrentSize();
318317
}, [updateCurrentSize]);
319318

320-
// Calculate maxSize based on container dimensions
321319
const calculateMaxSize = React.useCallback(() => {
322320
if (wrapperRef.current) {
323321
const rect = wrapperRef.current.parentElement?.getBoundingClientRect();
@@ -337,7 +335,6 @@ const DrawerPopup: React.ForwardRefRenderFunction<
337335
);
338336

339337
const handleResizeStart = React.useCallback(() => {
340-
// Recalculate maxSize to get the latest container size
341338
calculateMaxSize();
342339
onResizeStart?.();
343340
}, [onResizeStart, calculateMaxSize]);
@@ -346,7 +343,6 @@ const DrawerPopup: React.ForwardRefRenderFunction<
346343
onResizeEnd?.();
347344
}, [onResizeEnd]);
348345

349-
// Use drag hook for resizable functionality
350346
const { dragElementProps, isDragging } = useDrag({
351347
prefixCls: `${prefixCls}-resizable`,
352348
direction: placement,
@@ -373,7 +369,6 @@ const DrawerPopup: React.ForwardRefRenderFunction<
373369
return style;
374370
}, [wrapperStyle, resizable]);
375371

376-
// Initialize maxSize calculation
377372
React.useEffect(() => {
378373
calculateMaxSize();
379374
}, [calculateMaxSize]);

0 commit comments

Comments
 (0)