refactor: Add modal handle
This commit is contained in:
parent
b1c4338a73
commit
533b39f0ec
@ -17,7 +17,7 @@ export default function WithDraggable({ isShow, children, pos }) {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{isShow && (
|
{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}
|
{children}
|
||||||
</Draggable>
|
</Draggable>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user