diff --git a/packages/designer/src/Components/Views/QuickFormEndingSettingsView.tsx b/packages/designer/src/Components/Views/QuickFormEndingSettingsView.tsx index 0bf1963..f004798 100644 --- a/packages/designer/src/Components/Views/QuickFormEndingSettingsView.tsx +++ b/packages/designer/src/Components/Views/QuickFormEndingSettingsView.tsx @@ -13,37 +13,39 @@ import { JsonField } from "./rjsf/Widgets/JsonWidget"; import { RichTextField } from "./rjsf/Widgets/RichTextWidget"; import { QuickformDesignerFields } from "./QuickFormQuestionsView"; -const endingSlideSchema = { - label: "Ending Settings", - uiSchema: { - text: "QF_EndingSlideTextField" in QuickformDesignerFields ? ({ - "ui:field": "QF_EndingSlideTextField" - }) : ({}), - paragraph: "QF_EndingSlideParagraphField" in QuickformDesignerFields ? ({ - "ui:field": "QF_EndingSlideParagraphField" - }) : ({}), - }, - schema: { - type: "object", - required: ["text"], - properties: { - text: { - title: "Text", - description: "The headline displayed to the end user when completed the form", - type: "string" - }, - paragraph: { - title: "Paragraph", - description: "The text displayed to the end user when when completed the form", - type: "string" +export const QuickFormEndingSettingsView = () => { + + + const endingSlideSchema = { + label: "Ending Settings", + uiSchema: { + text: "QF_EndingSlideTextField" in QuickformDesignerFields ? ({ + "ui:field": "QF_EndingSlideTextField" + }) : ({}), + paragraph: "QF_EndingSlideParagraphField" in QuickformDesignerFields ? ({ + "ui:field": "QF_EndingSlideParagraphField" + }) : ({}), + }, + schema: { + type: "object", + required: ["text"], + properties: { + text: { + title: "Text", + description: "The headline displayed to the end user when completed the form", + type: "string" + + }, + paragraph: { + title: "Paragraph", + description: "The text displayed to the end user when when completed the form", + type: "string" + } } } - } -} as { label: string, uiSchema: any, schema: JSONSchema7 }; - + } as { label: string, uiSchema: any, schema: JSONSchema7 }; -export const QuickFormEndingSettingsView = () => { const { quickformpayload: { ending }, updateQuickFormPayload: dispatch } = useQuickFormDefinition(); const styles = useViewStyles();