From 1233211966c1a28c35386d24dbafc4958557a158 Mon Sep 17 00:00:00 2001 From: fantasticit Date: Mon, 30 May 2022 12:25:04 +0800 Subject: [PATCH] client: autofous when open search --- packages/client/src/components/search/index.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/client/src/components/search/index.tsx b/packages/client/src/components/search/index.tsx index a49c3005..49a0be90 100644 --- a/packages/client/src/components/search/index.tsx +++ b/packages/client/src/components/search/index.tsx @@ -66,7 +66,6 @@ const List: React.FC<{ data: IDocument[] }> = ({ data }) => { export const Search = () => { const [visible, toggleVisible] = useToggle(false); - // const { data: recentDocs } = useRecentDocuments(); const [searchApi, loading] = useAsyncLoading(searchDocument, 10); const [keyword, setKeyword] = useState(''); const [error, setError] = useState(null); @@ -113,6 +112,7 @@ export const Search = () => {
{ error={error} normalContent={() => } /> - {/*
- 最近访问的文档 - -
*/}