From c4dd64a09461cee000f41fc1e936d17b2e89101d Mon Sep 17 00:00:00 2001 From: Kasper Baun Date: Tue, 7 May 2024 11:53:21 +0200 Subject: [PATCH] fix: fixed registerToken on quickformToken that no longer exists --- .../designer/src/Components/Views/QuickFormSettingsView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/designer/src/Components/Views/QuickFormSettingsView.tsx b/packages/designer/src/Components/Views/QuickFormSettingsView.tsx index 67ea2d8..5df8fd1 100644 --- a/packages/designer/src/Components/Views/QuickFormSettingsView.tsx +++ b/packages/designer/src/Components/Views/QuickFormSettingsView.tsx @@ -1,4 +1,4 @@ - + import Form from "@rjsf/fluentui-rc"; import validator from '@rjsf/validator-ajv8'; import { FieldTemplate } from "./rjsf/FieldTemplate"; @@ -39,7 +39,7 @@ const inputSlideSchema = { } } as { label: string, uiSchema: any, schema: JSONSchema7 }; -function registerToken(key: keyof typeof defaultQuickFormTokens, title:string, description:string, widget:string) { +function registerToken(key: keyof typeof defaultQuickFormTokens, title: string, description: string, widget: string) { const tokensSchema = inputSlideSchema.schema.properties?.quickFormTokens! as JSONSchema7; const uiSchema = inputSlideSchema.uiSchema.quickFormTokens; @@ -74,7 +74,7 @@ registerToken("onPrimary", "On Primary Color", "The color used for text ontop of registerToken("error", "Error Color", "The colour used for containers with errors, aka background colour.", "color"); registerToken("onError", "On Error Color", "The color used for text ontop of error color....", "color"); -registerToken("questionTextFontSize", "Question Text Font Size", "The size of question text...", "text"); +registerToken("questionHeadlineFontSize", "Question Headline Font Size", "The size of the question headline...", "text"); registerToken("questionParagraphFontSize", "Question Paragraph Font Size", "The size of question paragraph...", "text"); export const QuickFormSettingsView = () => {