refactor: Add modal handle
This commit is contained in:
parent
740bc2de3f
commit
750ceef8c0
@ -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>
|
||||
)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user