From 2bbee3c1ee67809bc7f3c83eee8635aa9522ce87 Mon Sep 17 00:00:00 2001 From: obrucheoghene Date: Wed, 25 Mar 2026 16:46:07 +0100 Subject: [PATCH] fix: resolve TypeScript build errors in pin-grid and chat-container - Add missing Layout fields (rows, cols, aspectRatio) to STRIP_TILE constant - Remove unused chatActions declaration in DM thread component --- src/components/room/chat/chat-container.tsx | 1 - src/components/room/display/pin-grid.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/room/chat/chat-container.tsx b/src/components/room/chat/chat-container.tsx index e25f6b3..c385396 100644 --- a/src/components/room/chat/chat-container.tsx +++ b/src/components/room/chat/chat-container.tsx @@ -61,7 +61,6 @@ const DmThread = ({ const { signalingService } = useSignaling(); const peerMe = usePeerMe(); const dmChats = useDmChats(); - const chatActions = useChatActions(); const [message, setMessage] = useState(''); const [showPicker, setShowPicker] = useState(false); const thread = dmChats[peer.id] ?? []; diff --git a/src/components/room/display/pin-grid.tsx b/src/components/room/display/pin-grid.tsx index 7da8080..e45dc1b 100644 --- a/src/components/room/display/pin-grid.tsx +++ b/src/components/room/display/pin-grid.tsx @@ -14,7 +14,7 @@ import { useMedia } from '@/hooks/use-media'; import { PeerTile } from '../grid/peer-tile'; import MyTile from '../grid/my-tile'; -const STRIP_TILE = { width: 160, height: 120 }; +const STRIP_TILE = { width: 160, height: 120, rows: 1, cols: 1, aspectRatio: '4:3' }; const PinnedLarge = ({ peerId }: { peerId: string }) => { const videoRef = useRef(null);