fix: revert naming convo render functions as components

it broke the search input for some reason
pull/3083/head
William Grant 11 months ago
parent 93d1a9d430
commit 0f89b1134d

@ -82,7 +82,7 @@ export const LeftPaneMessageSection = () => {
return <ConversationListItem key={key} style={style} conversationId={conversationId} />; return <ConversationListItem key={key} style={style} conversationId={conversationId} />;
}; };
const ConversationList = () => { const renderList = () => {
if (!isEmpty(searchTerm)) { if (!isEmpty(searchTerm)) {
return <SearchResults />; return <SearchResults />;
} }
@ -113,7 +113,7 @@ export const LeftPaneMessageSection = () => {
); );
}; };
const Conversations = () => { const renderConversations = () => {
return ( return (
<StyledConversationListContent> <StyledConversationListContent>
<SessionSearchInput /> <SessionSearchInput />
@ -122,7 +122,7 @@ export const LeftPaneMessageSection = () => {
window.inboxStore?.dispatch(setLeftOverlayMode('message-requests')); window.inboxStore?.dispatch(setLeftOverlayMode('message-requests'));
}} }}
/> />
<ConversationList /> {renderList()}
</StyledConversationListContent> </StyledConversationListContent>
); );
}; };
@ -130,7 +130,7 @@ export const LeftPaneMessageSection = () => {
return ( return (
<StyledLeftPaneContent> <StyledLeftPaneContent>
<LeftPaneSectionHeader /> <LeftPaneSectionHeader />
{leftOverlayMode ? <ClosableOverlay /> : <Conversations />} {leftOverlayMode ? <ClosableOverlay /> : renderConversations()}
</StyledLeftPaneContent> </StyledLeftPaneContent>
); );
}; };

Loading…
Cancel
Save