feat: add new page button (#2417)

This commit is contained in:
Whitewater
2023-05-18 13:07:05 -07:00
committed by himself65
parent 341b18ded7
commit 48ef60cb0a
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]);