Merge branch 'feat/filesystem_and_search' of github.com:toeverything/AFFiNE into feat/filesystem_and_search

This commit is contained in:
DiamondThree
2022-12-20 14:14:39 +08:00
3 changed files with 15 additions and 3 deletions
@@ -4,17 +4,21 @@ export const config = (currentWorkspaceId: string) => {
const List = [
{
title: 'All pages',
href: `/workspace/${currentWorkspaceId}/all`,
href: `/workspace/${currentWorkspaceId ? currentWorkspaceId : 'all'}/all`,
icon: AllPagesIcon,
},
{
title: 'Favourites',
href: `/workspace/${currentWorkspaceId}/favorite`,
href: `/workspace/${
currentWorkspaceId ? currentWorkspaceId : 'all'
}/favorite`,
icon: FavouritesIcon,
},
{
title: 'Trash',
href: `/workspace/${currentWorkspaceId}/trash`,
href: `/workspace/${
currentWorkspaceId ? currentWorkspaceId : 'all'
}/trash`,
icon: TrashIcon,
},
];
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>
)
) : (