mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 17:46:18 +08:00
feat: add no result image for quick search
This commit is contained in:
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>
|
||||
)
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user