+
Ссылка скопирована
)}
diff --git a/client/src/components/ui/Select.tsx b/client/src/components/ui/Select.tsx
index 91631bc..534b262 100644
--- a/client/src/components/ui/Select.tsx
+++ b/client/src/components/ui/Select.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable react-hooks/exhaustive-deps */
import { useClickAway } from "@uidotdev/usehooks";
import clsx from "clsx";
import { useEffect, useRef, useState } from "react";
@@ -10,6 +11,7 @@ interface SelectProps {
onSelect: (value: string) => void;
className?: string;
defaultOption?: string;
+ size?: "small" | "large";
}
function Select({
@@ -17,6 +19,7 @@ function Select({
onSelect,
className,
defaultOption = "",
+ size = "large",
}: SelectProps) {
const [isOpen, setIsOpen] = useState(false);
const [selectedOption, setSelectedOption] = useState(defaultOption);
@@ -27,7 +30,7 @@ function Select({
useEffect(() => setSelectedOption(defaultOption), [defaultOption]);
- useEffect(() => onSelect(selectedOption), [onSelect, selectedOption]);
+ useEffect(() => onSelect(selectedOption), [selectedOption]);
function handleScroll() {
if (!dropDownRef.current) return;
@@ -51,16 +54,25 @@ function Select({
"w-full bg-[#F3F3F3] 2xl:py-[0.972vw] py-3.5 2xl:px-[1.111vw] px-4 flex justify-between items-center 2xl:gap-[0.833vw] gap-3 select-none cursor-pointer transition-colors",
"2xl:rounded-[1.111vw] rounded-2xl",
"hover:bg-[#F0F0F0]",
+ size === "small" &&
+ "2xl:gap-[0.139vw] gap-0.5 !p-0 !bg-transparent !ring-transparent outline-none",
isOpen && "ring-1 ring-[#7B60F3]"
)}
onClick={() => setIsOpen(!isOpen)}
>
-
+
{selectedOption || "Не выбрано"}
diff --git a/client/src/pages/HomePage.tsx b/client/src/pages/HomePage.tsx
index ae9a568..617cac6 100644
--- a/client/src/pages/HomePage.tsx
+++ b/client/src/pages/HomePage.tsx
@@ -7,8 +7,10 @@ import usePopupStore from "../store/popupStore";
import SettingsModal from "../components/modals/SettingsModal";
import useModalStore from "../store/modalStore";
import CogFilledIcon from "../components/icons/CogFilledIcon";
-import SessionUsersPanel from "../components/SessionUsersPanel";
+// import SessionUsersPanel from "../components/SessionUsersPanel";
import SharePopup from "../components/popups/SharePopup";
+import ChatPopup from "../components/popups/ChatPopup";
+import ChatFilledIcon from "../components/icons/ChatFilledIcon";
function HomePage() {
const { data: user } = useMe();
@@ -41,7 +43,15 @@ function HomePage() {
-
+
setPopup()}
+ >
+
+
+
+
+ {/*
*/}