fix: fix quick search

This commit is contained in:
JimmFly
2022-12-20 12:50:11 +08:00
parent d5832b1093
commit 45766b6b46
5 changed files with 48 additions and 29 deletions
@@ -1,20 +1,22 @@
import { AllPagesIcon, FavouritesIcon, TrashIcon } from '@blocksuite/icons';
// FIXME: href changed
export const List = [
{
title: 'All pages',
href: '/page-list/all',
icon: AllPagesIcon,
},
{
title: 'Favourites',
href: '/page-list/favorite',
icon: FavouritesIcon,
},
{
title: 'Trash',
href: '/page-list/trash',
icon: TrashIcon,
},
];
export const config = (currentWorkspaceId: string) => {
const List = [
{
title: 'All pages',
href: `/workspace/${currentWorkspaceId}/all`,
icon: AllPagesIcon,
},
{
title: 'Favourites',
href: `/workspace/${currentWorkspaceId}/favorite`,
icon: FavouritesIcon,
},
{
title: 'Trash',
href: `/workspace/${currentWorkspaceId}/trash`,
icon: TrashIcon,
},
];
return List;
};