diff --git a/src/components/Chat2.tsx b/src/components/Chat2.tsx index 4344d17..6206e2b 100644 --- a/src/components/Chat2.tsx +++ b/src/components/Chat2.tsx @@ -12,10 +12,11 @@ import useChatStore from "../stores/useChatStore"; import { isMobile } from "react-device-detect"; interface Props { + isFullscreen: boolean; onClose: () => void; } -function Chat2({ onClose }: Props) { +function Chat2({ isFullscreen, onClose }: Props) { const { socket } = useSocketStore(); const { me, users } = useStreamUserStore(); // const [messages] = useStateRef([]); @@ -45,7 +46,9 @@ function Chat2({ onClose }: Props) { return (
diff --git a/src/components/User.tsx b/src/components/User.tsx index 3da4573..db3c88b 100644 --- a/src/components/User.tsx +++ b/src/components/User.tsx @@ -38,7 +38,7 @@ function User({ me, user, handleTransferControl, handleKick }: Props) {
{me.isAdmin && ( -
+
- - )} -
-
-
- {me && - users.map((user) => { - if (user.id !== userId) { - return ( - transferControl(user.id)} - handleKick={() => kick(user.id)} - /> - ); - } - })} -
-
-
-
-
-
-
-
-
+
+
+ + )} +
+
+
+ {me && + users.map((user) => { + if (user.id !== userId) { + return ( + + transferControl(user.id) + } + handleKick={() => kick(user.id)} + /> + ); + } + })} +
- {!isIOS && ( +
- )} +
+
+
+
+ {!isIOS && ( +
+
+ )} +
+
- - + + )}
{WSUrl && ( - {isShowChat && setIsShowChat(false)} />} + {isShowChat && setIsShowChat(false)} />}
{isPortrait && (