Fix conversation close shortcut
This commit is contained in:
parent
cd3d3dc8a6
commit
94f02dcc88
2 changed files with 2 additions and 6 deletions
|
@ -15,7 +15,6 @@ type ChatsTabProps = Readonly<{
|
||||||
hasFailedStorySends: boolean;
|
hasFailedStorySends: boolean;
|
||||||
navTabsCollapsed: boolean;
|
navTabsCollapsed: boolean;
|
||||||
onToggleNavTabsCollapse: (navTabsCollapsed: boolean) => void;
|
onToggleNavTabsCollapse: (navTabsCollapsed: boolean) => void;
|
||||||
prevConversationId: string | undefined;
|
|
||||||
renderConversationView: () => JSX.Element;
|
renderConversationView: () => JSX.Element;
|
||||||
renderLeftPane: (props: NavTabPanelProps) => JSX.Element;
|
renderLeftPane: (props: NavTabPanelProps) => JSX.Element;
|
||||||
renderMiniPlayer: (options: { shouldFlow: boolean }) => JSX.Element;
|
renderMiniPlayer: (options: { shouldFlow: boolean }) => JSX.Element;
|
||||||
|
@ -30,7 +29,6 @@ export function ChatsTab({
|
||||||
hasFailedStorySends,
|
hasFailedStorySends,
|
||||||
navTabsCollapsed,
|
navTabsCollapsed,
|
||||||
onToggleNavTabsCollapse,
|
onToggleNavTabsCollapse,
|
||||||
prevConversationId,
|
|
||||||
renderConversationView,
|
renderConversationView,
|
||||||
renderLeftPane,
|
renderLeftPane,
|
||||||
renderMiniPlayer,
|
renderMiniPlayer,
|
||||||
|
@ -50,15 +48,14 @@ export function ChatsTab({
|
||||||
</div>
|
</div>
|
||||||
<div className="Inbox__conversation-stack">
|
<div className="Inbox__conversation-stack">
|
||||||
<div id="toast" />
|
<div id="toast" />
|
||||||
{selectedConversationId && (
|
{selectedConversationId ? (
|
||||||
<div
|
<div
|
||||||
className="Inbox__conversation"
|
className="Inbox__conversation"
|
||||||
id={`conversation-${selectedConversationId}`}
|
id={`conversation-${selectedConversationId}`}
|
||||||
>
|
>
|
||||||
{renderConversationView()}
|
{renderConversationView()}
|
||||||
</div>
|
</div>
|
||||||
)}
|
) : (
|
||||||
{!prevConversationId && (
|
|
||||||
<div className="Inbox__no-conversation-open">
|
<div className="Inbox__no-conversation-open">
|
||||||
{renderMiniPlayer({ shouldFlow: false })}
|
{renderMiniPlayer({ shouldFlow: false })}
|
||||||
<div className="module-splash-screen__logo module-img--128 module-logo-blue" />
|
<div className="module-splash-screen__logo module-img--128 module-logo-blue" />
|
||||||
|
|
|
@ -150,7 +150,6 @@ export function SmartChatsTab(): JSX.Element {
|
||||||
hasPendingUpdate={hasPendingUpdate}
|
hasPendingUpdate={hasPendingUpdate}
|
||||||
navTabsCollapsed={navTabsCollapsed}
|
navTabsCollapsed={navTabsCollapsed}
|
||||||
onToggleNavTabsCollapse={toggleNavTabsCollapse}
|
onToggleNavTabsCollapse={toggleNavTabsCollapse}
|
||||||
prevConversationId={prevConversationId}
|
|
||||||
renderConversationView={renderConversationView}
|
renderConversationView={renderConversationView}
|
||||||
renderLeftPane={renderLeftPane}
|
renderLeftPane={renderLeftPane}
|
||||||
renderMiniPlayer={renderMiniPlayer}
|
renderMiniPlayer={renderMiniPlayer}
|
||||||
|
|
Loading…
Reference in a new issue