refactor: Add modal handle

This commit is contained in:
yoosangwook 2024-10-02 11:33:49 +09:00
parent b1c4338a73
commit 533b39f0ec

View File

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