fix: update field props and field validation library

Signed-off-by: JinoArch <39610834+JinoArch@users.noreply.github.com>
This commit is contained in:
JinoArch
2024-02-17 17:59:25 -05:00
committed by GitHub
parent 25adbdde2d
commit 1771120a72
@@ -30,7 +30,8 @@ As an example, we will create a component that validates whether a string is in
```tsx
//packages/app/src/scaffolder/ValidateKebabCase/ValidateKebabCaseExtension.tsx
import React from 'react';
import { FieldProps, FieldValidation } from '@rjsf/core';
import { FieldExtensionComponentProps } from '@backstage/plugin-scaffolder-react';
import type { FieldValidation } from '@rjsf/utils';
import FormControl from '@material-ui/core/FormControl';
/*
This is the actual component that will get rendered in the form
@@ -40,7 +41,7 @@ export const ValidateKebabCase = ({
rawErrors,
required,
formData,
}: FieldProps<string>) => {
}: FieldExtensionComponentProps<string>) => {
return (
<FormControl
margin="normal"