chore: remove unreasonable import

This commit is contained in:
JimmFly
2022-12-20 18:34:55 +08:00
parent 12761f19a0
commit 82acc93fcc
4 changed files with 2 additions and 10 deletions
+2 -3
View File
@@ -1,5 +1,4 @@
import { Page } from '@blocksuite/store';
import { QueryContent } from '@blocksuite/store/dist/workspace/search';
import { PageMeta } from '@/providers/editor-provider';
import { useAppState } from '@/providers/app-state-provider';
@@ -13,7 +12,7 @@ export type EditorHandlers = {
toggleDeletePage: (pageId: string) => void;
toggleFavoritePage: (pageId: string) => void;
// permanentlyDeletePage: (pageId: string) => void;
search: (query: QueryContent) => Map<string, string | undefined>;
search: (query: string) => Map<string, string | undefined>;
// changeEditorMode: (pageId: string) => void;
};
@@ -45,7 +44,7 @@ export const usePageHelper = (): EditorHandlers => {
});
}
},
search: (query: QueryContent) => {
search: (query: string) => {
return currentWorkspace!.search(query);
},
};