Skip to content

Commit

Permalink
fix: fixed registerToken on quickformToken that no longer exists
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBaun committed May 7, 2024
1 parent 920ee17 commit c4dd64a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

import Form from "@rjsf/fluentui-rc";
import validator from '@rjsf/validator-ajv8';
import { FieldTemplate } from "./rjsf/FieldTemplate";
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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 = () => {
Expand Down

0 comments on commit c4dd64a

Please sign in to comment.