fix: modify with new blocksuite version about subpage (#2060)

This commit is contained in:
Qi
2023-04-21 16:34:32 +08:00
committed by GitHub
parent 5a124831b8
commit 9ec6768272
18 changed files with 175 additions and 405 deletions

View File

@@ -10,9 +10,9 @@ import { useMemo } from 'react';
export function useBlockSuiteWorkspaceHelper(blockSuiteWorkspace: Workspace) {
return useMemo(
() => ({
createPage: (pageId: string, parentId?: string): Page => {
createPage: (pageId: string): Page => {
assertExists(blockSuiteWorkspace);
return blockSuiteWorkspace.createPage(pageId, parentId);
return blockSuiteWorkspace.createPage(pageId);
},
markMilestone: async (name: string) => {
assertExists(blockSuiteWorkspace);