Update to use react-editor <App /> component

This commit is contained in:
Rami Bitar
2026-05-03 16:22:24 -04:00
parent a78249846a
commit 757118706e
51 changed files with 2294 additions and 2190 deletions

View File

@@ -132,7 +132,7 @@ export default function EditorClient({
currentPath={currentPath}
onRouteChange={(next) => {
setCurrentPath(next);
router.push(`/edit${next === "/" ? "" : next}`);
router.push(next === "/" ? "/edit" : `${next}/edit`);
}}
onPublish={async (next) => {
await persist(editKey, next);