fix(core): display user name dynamically (#4248)

This commit is contained in:
Alex Yang
2023-09-06 22:02:21 -07:00
committed by GitHub
parent 4d96d2dd02
commit 57c5f6cd2c
4 changed files with 56 additions and 9 deletions

View File

@@ -35,12 +35,14 @@ import * as styles from './page-detail-editor.css';
import { pluginContainer } from './page-detail-editor.css';
import { TrashButtonGroup } from './pure/trash-button-group';
export type OnLoadEditor = (page: Page, editor: EditorContainer) => () => void;
export interface PageDetailEditorProps {
isPublic?: boolean;
workspace: Workspace;
pageId: string;
onInit: (page: Page, editor: Readonly<EditorContainer>) => void;
onLoad?: (page: Page, editor: EditorContainer) => () => void;
onLoad?: OnLoadEditor;
}
const EditorWrapper = memo(function EditorWrapper({