diff --git a/app/components/dialogs/page-configure.jsx b/app/components/dialogs/page-configure.jsx index baf61817..bd1a9186 100644 --- a/app/components/dialogs/page-configure.jsx +++ b/app/components/dialogs/page-configure.jsx @@ -16,6 +16,12 @@ const pageEditFields = { placeholder: "Untitled Page", helper: "Give your page a name.", }, + description: { + type: FORM_OPTIONS.TEXTAREA, + title: "Description", + // placeholder: "Add a description", + helper: "Add a description to your page.", + }, readonly: { type: FORM_OPTIONS.CHECKBOX, title: "Read-Only", @@ -29,6 +35,7 @@ export const PageConfigureDialog = props => { const page = scene.getPage(props.page); const [data, setData] = useFormData({ title: page.title, + description: page.description, readonly: !!page.readonly, }); const isSubmitEnabled = !!data.title; diff --git a/app/components/form/index.jsx b/app/components/form/index.jsx index 98c4418d..0c2e189e 100644 --- a/app/components/form/index.jsx +++ b/app/components/form/index.jsx @@ -210,6 +210,15 @@ const optionTypes = { onChange={event => props.onChange(event.target.value)} /> ), + [FORM_OPTIONS.TEXTAREA]: props => ( +