feat: add no result image for quick search

This commit is contained in:
JimmFly
2022-12-20 13:34:41 +08:00
parent bd421b8f4b
commit 4400081332
2 changed files with 8 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

@@ -9,6 +9,8 @@ import { config } from './config';
import { useGoToPage } from '@/providers/app-state-provider/hooks';
import { usePageList } from '@/providers/app-state-provider/usePageList';
import { useLoadWorkspace } from '@/providers/app-state-provider/hooks';
import NextImage from 'next/image';
import noResultImage from './jungle-searching.png';
export const Results = (props: {
query: string;
loading: boolean;
@@ -72,6 +74,12 @@ export const Results = (props: {
) : (
<StyledNotFound>
<span>Find 0 result</span>
<NextImage
alt="no result"
src={noResultImage}
width={150}
height={150}
></NextImage>
</StyledNotFound>
)
) : (