From 2a7f78dc8f9a8f6afe8a48796f75c6de0fcdb157 Mon Sep 17 00:00:00 2001 From: JimmFly Date: Fri, 16 Dec 2022 10:34:25 +0800 Subject: [PATCH] feat: add quick search listItem icon --- .../app/src/components/quick-search/results.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/app/src/components/quick-search/results.tsx b/packages/app/src/components/quick-search/results.tsx index d75b068235..9e279bd4ad 100644 --- a/packages/app/src/components/quick-search/results.tsx +++ b/packages/app/src/components/quick-search/results.tsx @@ -1,7 +1,12 @@ import { Command } from 'cmdk'; import { StyledListItem, StyledNotFound } from './style'; import { useModal } from '@/providers/global-modal-provider'; -import { PaperIcon, LogoUnlogIcon } from '@blocksuite/icons'; +import { + PaperIcon, + EdgelessIcon, + LogoUnlogIcon, + AllPagesIcon, +} from '@blocksuite/icons'; import { useEditor } from '@/providers/editor-provider'; import { Dispatch, SetStateAction, useEffect, useState } from 'react'; import { useRouter } from 'next/router'; @@ -36,6 +41,7 @@ export const Results = (props: { setShowCreatePage(resultsPageMeta.length ? false : true); //Determine whether to display the ‘+ New page’ }, [resultsPageMeta, setShowCreatePage]); + console.log(resultsPageMeta); return loading ? null : ( @@ -53,7 +59,11 @@ export const Results = (props: { value={result.title} > - + {result.mode === 'edgeless' ? ( + + ) : ( + + )} {result.title}