diff --git a/editor.planx.uk/src/@planx/components/Page/Editor.tsx b/editor.planx.uk/src/@planx/components/Page/Editor.tsx index ac96bbe804..fd5eb2cadb 100644 --- a/editor.planx.uk/src/@planx/components/Page/Editor.tsx +++ b/editor.planx.uk/src/@planx/components/Page/Editor.tsx @@ -1,13 +1,25 @@ +import MenuItem from "@mui/material/MenuItem"; import { ComponentType as TYPES } from "@opensystemslab/planx-core/types"; import { useFormik } from "formik"; import React from "react"; +import ModalSection from "ui/editor/ModalSection"; +import ModalSectionContent from "ui/editor/ModalSectionContent"; +import RichTextInput from "ui/editor/RichTextInput"; +import SelectInput from "ui/editor/SelectInput"; +import Input from "ui/shared/Input"; +import InputRow from "ui/shared/InputRow"; +import InputRowItem from "ui/shared/InputRowItem"; +import InputRowLabel from "ui/shared/InputRowLabel"; -import { EditorProps } from "../ui"; +import { EditorProps, ICONS, InternalNotes, MoreInformation } from "../ui"; import { Page, parsePage } from "./model"; +import { ProposedAdvertisements } from "./schema/AdvertConsent"; type Props = EditorProps; -export default PageComponent; +export const PAGE_SCHEMAS = [ + { name: "Advert consent", schema: ProposedAdvertisements }, +] as const; function PageComponent(props: Props) { const formik = useFormik({ @@ -22,7 +34,75 @@ function PageComponent(props: Props) { return (