diff --git a/src/features/chats/components/chat-pane/chat-pane.tsx b/src/features/chats/components/chat-pane/chat-pane.tsx index 20896167c..81d1f0ad6 100644 --- a/src/features/chats/components/chat-pane/chat-pane.tsx +++ b/src/features/chats/components/chat-pane/chat-pane.tsx @@ -80,7 +80,7 @@ const ChatPane = () => { // Active chat if (screen === ChatWidgetScreens.CHAT || screen === ChatWidgetScreens.CHAT_SETTINGS) { return ( - + ); @@ -88,7 +88,7 @@ const ChatPane = () => { if (screen === ChatWidgetScreens.SEARCH) { return ( - + {isOpen ? : null} @@ -97,7 +97,7 @@ const ChatPane = () => { } return ( - + } unreadCount={unreadChatsCount} diff --git a/src/features/chats/components/ui/pane.tsx b/src/features/chats/components/ui/pane.tsx index c31ff07ad..6583b76fc 100644 --- a/src/features/chats/components/ui/pane.tsx +++ b/src/features/chats/components/ui/pane.tsx @@ -4,25 +4,18 @@ import React from 'react'; interface IPane { /** Whether the pane is open or minimized. */ isOpen: boolean; - /** Positions the pane on the screen, with 0 at the right. */ - index: number; /** Children to display in the pane. */ children: React.ReactNode; - /** Whether this is the main chat pane. */ - main?: boolean; } /** Chat pane UI component for desktop. */ -const Pane: React.FC = ({ isOpen = false, index, children, main = false }) => { - const right = (404 * index) + 20; - +const Pane: React.FC = ({ isOpen = false, children }) => { return (
{children} diff --git a/src/features/ui/index.tsx b/src/features/ui/index.tsx index 943cd6d3c..beb578efc 100644 --- a/src/features/ui/index.tsx +++ b/src/features/ui/index.tsx @@ -505,7 +505,9 @@ const UI: React.FC = ({ children }) => { {me && features.chats && (
- + }> + +
)}