work on editor

This commit is contained in:
Philipinho
2023-10-26 00:35:49 +01:00
parent 968b9c3a0f
commit fd2ef3a906
27 changed files with 1616 additions and 271 deletions
+8 -2
View File
@@ -1,8 +1,14 @@
import { useParams } from 'react-router-dom';
import Editor from '@/features/editor/editor';
import React, { Suspense } from 'react';
const Editor = React.lazy(() => import('@/features/editor/editor'));
export default function Page() {
const { pageId } = useParams();
return <Editor key={pageId} pageId={pageId} />;
return (
<Suspense fallback={<div>Loading...</div>}>
<Editor key={pageId} pageId={pageId} />
</Suspense>
);
}