diff --git a/src/components/common/draggable/WithDraggable.jsx b/src/components/common/draggable/WithDraggable.jsx index e962eb16..fa87910a 100644 --- a/src/components/common/draggable/WithDraggable.jsx +++ b/src/components/common/draggable/WithDraggable.jsx @@ -24,7 +24,7 @@ export default function WithDraggable({ isShow, children, pos = { x: 0, y: 0 }, handleOnDrag(e, data)} - handle= ''//{handle === '' ? '.modal-handle' : handle} //전체 handle + handle="" //{handle === '' ? '.modal-handle' : handle} //전체 handle cancel="input, button, select, textarea, [contenteditable], .sort-select" >
@@ -38,17 +38,17 @@ export default function WithDraggable({ isShow, children, pos = { x: 0, y: 0 }, ) } -function WithDraggableHeader({ title, onClose, children }) { +function WithDraggableHeader({ title, onClose, children, isFold, onFold = null }) { return (

{title}

-
- - {onClose && ( - - )} +
+ {onFold && } + {onClose && ( + + )}
)