Update React Editor integration and clean up template
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import PageEditor from '@/components/page-editor';
|
||||
import pageData from '../page.json';
|
||||
|
||||
// Editor for /policies/[handle]. Sitting under the route it edits means the preview
|
||||
// resolves the same params the public page gets, and `../page.json` is the
|
||||
// very file publishing writes back to.
|
||||
export default function EditorPage() {
|
||||
return <PageEditor routeKey="/policies/[handle]" page={pageData} />;
|
||||
return (
|
||||
<PageEditor pagePath="app/policies/[handle]/page.json" page={pageData} />
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user