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

Loading…
Cancel
Save