Update to use react-editor <App /> component
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user