mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-13 21:05:19 +00:00
refactor(component): editor component (#1834)
This commit is contained in:
@@ -40,13 +40,7 @@ const Editor: React.FC<{
|
||||
return <>loading...</>;
|
||||
}
|
||||
return (
|
||||
<BlockSuiteEditor
|
||||
blockSuiteWorkspace={blockSuiteWorkspace}
|
||||
page={page}
|
||||
mode="page"
|
||||
onInit={onInit}
|
||||
onLoad={onLoad}
|
||||
/>
|
||||
<BlockSuiteEditor page={page} mode="page" onInit={onInit} onLoad={onLoad} />
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -71,7 +71,6 @@ export const PageDetailEditor: React.FC<PageDetailEditorProps> = ({
|
||||
height: 'calc(100% - 52px)',
|
||||
}}
|
||||
key={pageId}
|
||||
blockSuiteWorkspace={blockSuiteWorkspace}
|
||||
mode={isPublic ? 'page' : currentMode}
|
||||
page={page}
|
||||
onInit={useCallback(
|
||||
|
||||
Reference in New Issue
Block a user