From 0eebcb20c4f99c9dd3abacb553e40517947b03b8 Mon Sep 17 00:00:00 2001 From: Sayak Mukhopadhyay Date: Fri, 20 Jan 2023 22:46:25 +0530 Subject: [PATCH] fix: field extensions with correct CSS and HTML Signed-off-by: Sayak Mukhopadhyay --- .../software-templates/writing-custom-field-extensions.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/features/software-templates/writing-custom-field-extensions.md b/docs/features/software-templates/writing-custom-field-extensions.md index 3bbe4777fb..20575a0b4a 100644 --- a/docs/features/software-templates/writing-custom-field-extensions.md +++ b/docs/features/software-templates/writing-custom-field-extensions.md @@ -35,7 +35,7 @@ import FormControl from '@material-ui/core/FormControl'; /* This is the actual component that will get rendered in the form */ -export const ValidateKebabCaseExtension = ({ +export const ValidateKebabCase = ({ onChange, rawErrors, required, @@ -94,14 +94,14 @@ import { createScaffolderFieldExtension, } from '@backstage/plugin-scaffolder'; import { - ValidateKebabCaseExtension, + ValidateKebabCase, validateKebabCaseValidation, -} from './ValidateKebabCase'; +} from './ValidateKebabCase/ValidateKebabCaseExtension'; export const ValidateKebabCaseFieldExtension = scaffolderPlugin.provide( createScaffolderFieldExtension({ name: 'ValidateKebabCase', - component: ValidateKebabCaseExtension, + component: ValidateKebabCase, validation: validateKebabCaseValidation, }), );