This commit is contained in:
2024-10-30 20:57:42 +05:00
parent b7e6e945fc
commit 75bc4a7e5c
5 changed files with 30 additions and 107 deletions
+2 -5
View File
@@ -12,11 +12,10 @@ import useChatStore from "../stores/useChatStore";
import { isMobile } from "react-device-detect";
interface Props {
isFullscreen: boolean;
onClose: () => void;
}
function Chat2({ isFullscreen, onClose }: Props) {
function Chat2({ onClose }: Props) {
const { socket } = useSocketStore();
const { me, users } = useStreamUserStore();
// const [messages] = useStateRef<IMessage[]>([]);
@@ -46,9 +45,7 @@ function Chat2({ isFullscreen, onClose }: Props) {
return (
<div
className={`chat lg:relative absolute right-0 ${
!isFullscreen ? "lg:h-[calc(100dvh-48px)]" : ""
} h-dvh flex flex-col w-[296px] bg-white border-t border-[#DAE0E5]`}
className={`chat fixed top-0 right-0 h-dvh flex flex-col w-[296px] bg-white border-t border-[#DAE0E5]`}
>
<div className="p-4 pb-2">
<div className="flex items-center justify-between border-b border-[#DAE0E5] pb-4">