diff --git a/client/src/components/PopupWrapper.tsx b/client/src/components/PopupWrapper.tsx
index 99e4ad7..94624c7 100644
--- a/client/src/components/PopupWrapper.tsx
+++ b/client/src/components/PopupWrapper.tsx
@@ -7,7 +7,6 @@ interface PopupWrapperProps {
className?: string;
title?: string;
leftButton?: React.ReactNode;
- draggable?: boolean;
}
function PopupWrapper({
@@ -15,7 +14,6 @@ function PopupWrapper({
className,
title,
leftButton,
- draggable,
}: PopupWrapperProps) {
return (
{/* Полоска-ручка для свайпа на мобильных */}
-
);
diff --git a/client/src/components/popups/ChatPopup.tsx b/client/src/components/popups/ChatPopup.tsx
index ca32de4..e9301ae 100644
--- a/client/src/components/popups/ChatPopup.tsx
+++ b/client/src/components/popups/ChatPopup.tsx
@@ -33,8 +33,13 @@ export default function ChatPopup() {
}
return (
-
-
+ = 640}
+ centerVertical
+ constrainToBounds
+ initialPosition={{ right: "5vw" }}
+ >
+
diff --git a/client/src/components/ui/ControlsPopover.tsx b/client/src/components/ui/ControlsPopover.tsx
index 1c3b19b..e229b06 100644
--- a/client/src/components/ui/ControlsPopover.tsx
+++ b/client/src/components/ui/ControlsPopover.tsx
@@ -38,17 +38,26 @@ function ControlsPopover() {
};
}, []);
- const { setPopup } = usePopupStore();
+ const { popup, setPopup } = usePopupStore();
const { setModal } = useModalStore();
+ function handleClickOpenChatPopup() {
+ console.log("handleClickOpenChatPopup");
+ setPopup(
);
+ }
+
+ useEffect(() => {
+ console.log(popup);
+ }, [popup]);
+
return (
-
+
setIsOpened(!isOpened)}
>
-
+
@@ -60,7 +69,7 @@ function ControlsPopover() {