feat: print nothing found when no search result.

fix: handle 404 of conversation fetch failed
This commit is contained in:
Wentao Lyu 2023-03-29 00:18:27 +08:00
parent 370dc2dd8a
commit d0d0a3d23e
3 changed files with 11 additions and 14 deletions

View file

@ -94,6 +94,10 @@ export default function Messages({ isSearchView = false }) {
</div>
{_messagesTree === null ? (
<Spinner />
) : _messagesTree?.length == 0 && isSearchView ? (
<div className="flex w-full items-center justify-center gap-1 bg-gray-50 p-3 text-sm text-gray-500 dark:border-gray-900/50 dark:bg-gray-800 dark:text-gray-300">
Nothing found
</div>
) : (
<>
<MultiMessage