refactor: Add modal handle

This commit is contained in:
yoosangwook 2024-10-02 11:34:47 +09:00
parent 740bc2de3f
commit 750ceef8c0

View File

@ -13,7 +13,7 @@ export default function WithDraggable({ isShow, children }) {
return (
<>
{isShow && (
<Draggable position={{ x: position.x, y: position.y }} onDrag={(_, data) => handleOnDrag(data)}>
<Draggable position={{ x: position.x, y: position.y }} onDrag={(_, data) => handleOnDrag(data)} handle=".modal-header">
{children}
</Draggable>
)}