Skip to content

Commit

Permalink
fix: moved the object into the render
Browse files Browse the repository at this point in the history
  • Loading branch information
pksorensen committed Oct 3, 2024
1 parent 76422ec commit 1585804
Showing 1 changed file with 29 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1585804

Please sign in to comment.