diff --git a/packages/app/src/components/quick-search/config.ts b/packages/app/src/components/quick-search/config.ts index efcd072a47..3fb501a6e9 100644 --- a/packages/app/src/components/quick-search/config.ts +++ b/packages/app/src/components/quick-search/config.ts @@ -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, }, ]; diff --git a/packages/app/src/components/quick-search/jungle-searching.png b/packages/app/src/components/quick-search/jungle-searching.png new file mode 100644 index 0000000000..0d71bb88bd Binary files /dev/null and b/packages/app/src/components/quick-search/jungle-searching.png differ diff --git a/packages/app/src/components/quick-search/results.tsx b/packages/app/src/components/quick-search/results.tsx index 9a3b2723f3..2b0bd7edee 100644 --- a/packages/app/src/components/quick-search/results.tsx +++ b/packages/app/src/components/quick-search/results.tsx @@ -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: { ) : ( Find 0 result + ) ) : (