feat: add new page button (#2417)

This commit is contained in:
Whitewater
2023-05-18 13:07:05 -07:00
committed by Himself65
parent 41936393ea
commit d905c9b5cf
16 changed files with 378 additions and 116 deletions
@@ -84,7 +84,7 @@ export const RootAppSidebar = ({
const blockSuiteWorkspace = currentWorkspace?.blockSuiteWorkspace;
const t = useAFFiNEI18N();
const onClickNewPage = useCallback(async () => {
const page = await createPage();
const page = createPage();
openPage(page.id);
}, [createPage, openPage]);