From 628fe77377e5f3358496f552c4fb80c7b39c07d3 Mon Sep 17 00:00:00 2001 From: DomW Date: Fri, 9 Jun 2023 14:10:51 +0100 Subject: [PATCH] feat: add empty current conversation search results state and adjust positioning (#646) * feat: add empty state and adjust position * feat: prevent empty state displaying when search input is empty --- .../messenger/list/conversation-list-panel.tsx | 4 ++++ src/components/messenger/list/styles.scss | 9 ++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/components/messenger/list/conversation-list-panel.tsx b/src/components/messenger/list/conversation-list-panel.tsx index d759839fc..1a88a14fb 100644 --- a/src/components/messenger/list/conversation-list-panel.tsx +++ b/src/components/messenger/list/conversation-list-panel.tsx @@ -143,6 +143,10 @@ export class ConversationListPanel extends React.Component { /> ))} + {this.filteredConversations?.length === 0 && this.state.filter !== '' && ( +
{`You do not have any active conversations with '${this.state.filter}' `}
+ )} + {this.state.userSearchResults?.length > 0 && this.state.filter !== '' && (