Fix conversation close shortcut

This commit is contained in:
Fedor Indutny 2024-02-14 10:39:06 -08:00 committed by GitHub
parent cd3d3dc8a6
commit 94f02dcc88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -15,7 +15,6 @@ type ChatsTabProps = Readonly<{
hasFailedStorySends: boolean;
navTabsCollapsed: boolean;
onToggleNavTabsCollapse: (navTabsCollapsed: boolean) => void;
prevConversationId: string | undefined;
renderConversationView: () => JSX.Element;
renderLeftPane: (props: NavTabPanelProps) => JSX.Element;
renderMiniPlayer: (options: { shouldFlow: boolean }) => JSX.Element;
@ -30,7 +29,6 @@ export function ChatsTab({
hasFailedStorySends,
navTabsCollapsed,
onToggleNavTabsCollapse,
prevConversationId,
renderConversationView,
renderLeftPane,
renderMiniPlayer,
@ -50,15 +48,14 @@ export function ChatsTab({
</div>
<div className="Inbox__conversation-stack">
<div id="toast" />
{selectedConversationId && (
{selectedConversationId ? (
<div
className="Inbox__conversation"
id={`conversation-${selectedConversationId}`}
>
{renderConversationView()}
</div>
)}
{!prevConversationId && (
) : (
<div className="Inbox__no-conversation-open">
{renderMiniPlayer({ shouldFlow: false })}
<div className="module-splash-screen__logo module-img--128 module-logo-blue" />

View file

@ -150,7 +150,6 @@ export function SmartChatsTab(): JSX.Element {
hasPendingUpdate={hasPendingUpdate}
navTabsCollapsed={navTabsCollapsed}
onToggleNavTabsCollapse={toggleNavTabsCollapse}
prevConversationId={prevConversationId}
renderConversationView={renderConversationView}
renderLeftPane={renderLeftPane}
renderMiniPlayer={renderMiniPlayer}