From c68dde3c43098bd64f0f1fa5d461e2719cb0df7c Mon Sep 17 00:00:00 2001 From: hexastack Date: Mon, 7 Apr 2025 10:53:44 +0100 Subject: [PATCH] fix: add no result found message --- .../src/components/inbox/components/ConversationsList.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/inbox/components/ConversationsList.tsx b/frontend/src/components/inbox/components/ConversationsList.tsx index 66409f85..a4e95458 100644 --- a/frontend/src/components/inbox/components/ConversationsList.tsx +++ b/frontend/src/components/inbox/components/ConversationsList.tsx @@ -53,7 +53,7 @@ export const SubscribersList = (props: { </Grid> - {subscribers?.length > 0 && ( + {subscribers?.length > 0 ? ( <ConversationList scrollable loading={isFetching} @@ -87,6 +87,12 @@ export const SubscribersList = (props: { </Conversation> ))} </ConversationList> + ) : ( + <Grid paddingX={2}> + <p style={{ textAlign: "center", color: "#999", marginTop: "1rem" }}> + {t("message.no_result_found")} + </p> + </Grid> )} </> );