Merge branch 'master' of github.com:toeverything/AFFINE-pathfinder into feat/layout

# Conflicts:
#	src/pages/index.tsx
This commit is contained in:
QiShaoXuan
2022-10-12 13:56:53 +08:00
5 changed files with 309 additions and 15 deletions

28
src/components/editor.tsx Normal file
View File

@@ -0,0 +1,28 @@
import type { EditorContainer } from '@blocksuite/editor';
import '@blocksuite/blocks';
import '@blocksuite/editor';
import '@blocksuite/blocks/style';
export const Editor = () => {
return (
<div>
Editor
<editor-container />
</div>
);
};
declare global {
interface HTMLElementTagNameMap {
'editor-container': EditorContainer;
}
namespace JSX {
interface IntrinsicElements {
// TODO fix type error
'editor-container': any; // EditorContainer
}
}
}
export default Editor;