Enhance DraggableContainer with new props for enabling/disabling functionality and dragging. Update Popup components to improve structure and responsiveness, removing unnecessary draggable props. Integrate console logging for debugging in PopupContainer and ControlsPopover.

This commit is contained in:
2025-10-21 20:28:30 +05:00
parent 8c61f10fdb
commit 3f463b8ff3
7 changed files with 80 additions and 30 deletions
+13 -4
View File
@@ -38,17 +38,26 @@ function ControlsPopover() {
};
}, []);
const { setPopup } = usePopupStore();
const { popup, setPopup } = usePopupStore();
const { setModal } = useModalStore();
function handleClickOpenChatPopup() {
console.log("handleClickOpenChatPopup");
setPopup(<ChatPopup />);
}
useEffect(() => {
console.log(popup);
}, [popup]);
return (
<div className="2xl:hidden order-3 relative">
<div className="relative order-3 2xl:hidden">
<FloatingActionButton
ref={buttonRef}
className={clsx(isOpened && "!bg-[#7B60F3]")}
onClick={() => setIsOpened(!isOpened)}
>
<div className="size-4 text-white">
<div className="text-white size-4">
<MoreIcon />
</div>
</FloatingActionButton>
@@ -60,7 +69,7 @@ function ControlsPopover() {
<Button
variant="tertiary"
className="w-full !justify-start"
onClick={() => setPopup(<ChatPopup />)}
onClick={handleClickOpenChatPopup}
>
<div className="size-4">
<ChatFilledIcon />