This commit is contained in:
Ivan Rezchikov
2026-07-11 21:40:18 +03:00
parent 6667cc55b2
commit e4844f741c
7 changed files with 30 additions and 34 deletions
+5 -3
View File
@@ -44,6 +44,10 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
});
}
const handleChange = (data: EditorData) => {
dataRef.current = data;
};
return (
<div className="flex flex-col p-4 md:p-16 gap-6 md:gap-12 mb-4 md:mb-0">
<div className="flex flex-row items-center justify-between">
@@ -62,9 +66,7 @@ export default function EditPageClient({ page, pageType, initialBlocks = [] }: P
page={page}
type={pageType}
initialBlocks={initialBlocks}
onChange={(data) => {
dataRef.current = data;
}}
onChange={handleChange}
/>
</div>
);