refactor page editor

This commit is contained in:
Philipinho
2023-11-24 18:03:53 +00:00
parent 21abde1054
commit 2a3db4e7cb
11 changed files with 173 additions and 141 deletions

View File

@ -1,7 +1,7 @@
import classes from '@/features/editor/styles/editor.module.css';
import Editor from '@/features/editor/editor';
import React from 'react';
import { TitleEditor } from '@/features/editor/title-editor';
import PageEditor from '@/features/editor/page-editor';
export interface FullEditorProps {
pageId: string;
@ -13,7 +13,7 @@ export function FullEditor({ pageId, title }: FullEditorProps) {
return (
<div className={classes.editor}>
<TitleEditor pageId={pageId} title={title} />
<Editor pageId={pageId} />
<PageEditor pageId={pageId} />
</div>
);