Merge pull request #893 from Hexastack/fix/add-no-result-found-message-in-inbox-page-when-searching-for-subscribers

fix: add no result found message
This commit is contained in:
Yassine
2025-04-11 21:00:49 +01:00
committed by GitHub

View File

@@ -54,7 +54,7 @@ export const SubscribersList = (props: {
<Grid padding={2}>
<Title title={t(props.assignedTo)} icon={InboxIcon} />
</Grid>
{subscribers?.length > 0 && (
{subscribers?.length > 0 ? (
<ConversationList
scrollable
loading={isFetching}
@@ -91,6 +91,10 @@ export const SubscribersList = (props: {
</Conversation>
))}
</ConversationList>
) : (
<Grid p={1} color="gray" textAlign="center">
{t("message.no_result_found")}
</Grid>
)}
</>
);